141 Commits

Author SHA1 Message Date
jbagg 1995137301 Merge pull request #42 from FMeinicke/fix-linker-error
Fix linker error due to missing export of debug operator
2020-10-04 22:31:17 -04:00
Florian Meinicke dca11a1c36 Fix linker error in example
when building QtZeroConf as shared library: The debug operator<< for
QZeroConfService was not properly exported
2020-10-04 14:35:00 +02:00
Florian Meinicke fe9d3cbc63 Add CMake project for example 2020-09-14 13:03:26 +02:00
Florian Meinicke 3fdf9dd8d8 Fix CMakeLists.txt for linux
Have to link to 'avahi-client' and not 'libavahi'
2020-09-14 13:03:26 +02:00
Florian Meinicke a8084c9eac Update CMakeLists.txt
to make QtZeroConf installable and usable from other projects
2020-09-14 13:03:26 +02:00
Florian Meinicke d630284b10 Update README with CMake build instructions 2020-09-14 12:45:48 +02:00
Florian Meinicke fe3751ecdb Fix CMakeLists.txt
* Add `project`
* Remove hardcoded values for controlling the library type (i.e. shared
or static) in favour of using `BUILD_SHARED_LIBS` and letting CMake
manage the rest
* Fix linker error (at least on Windows w/ MinGW) that
'legacy_stdio_definitions.lib' couldn't be found
2020-09-14 12:45:48 +02:00
Corentin Jabot 26521fb848 Fix build on azure 2020-09-14 12:45:48 +02:00
Corentin Jabot 10f457f2bf Fix windows build 2020-09-14 12:45:48 +02:00
Corentin Jabot 351a834af7 Fix windows build 2020-09-14 12:45:48 +02:00
Corentin Jabot a504ec17c7 Compile as static lib 2020-09-14 12:45:48 +02:00
Corentin Jabot ebb1958fff Build on android with cmake 2020-09-14 12:45:48 +02:00
Corentin Jabot 88d2d9475c Build as a shared lib 2020-09-14 12:45:48 +02:00
Corentin Jabot 0a69505312 Fix windows build 2020-09-14 12:45:48 +02:00
Corentin Jabot a09ffe6651 Fix cmake script 2020-09-14 12:45:48 +02:00
Rumen G.Bogdanovski 17f13cb80b bonjour-sdk: fix gcc compilation on windows 2020-08-29 15:04:23 +03:00
Rumen G.Bogdanovski 844e095e94 Revert "bonjour-sdk: fix gcc compilation on windows"
This reverts commit bd9ae98f7c.
2020-08-29 15:02:04 +03:00
Rumen G.Bogdanovski bd9ae98f7c bonjour-sdk: fix gcc compilation on windows 2020-08-29 14:05:01 +03:00
Jonathan Bagg 9d7b114e6a Bonjour - change QSocketNotifier pointers to QSharedPointer 2020-07-08 18:59:09 -04:00
Jonathan Bagg d346cd78a7 Bonjour - Fix memory leak and service rediscovery
The QSocketNotifiers for the resolver and address were not being deleted in
cleanUp().  This would cause a memory leak and also prevent a service from
being rediscovered after removed and added back on another device.  I
suspect the undeleted QSocketNotifier was holding a file descriptor open
which would break things.  Should fix

issue #27
Power-Cycling Bonjour Devices Can Cause Permanent Loss
https://github.com/jbagg/QtZeroConf/issues/27

and pull request #34
macOS: Fixed undetected service stop/start while the application is running
https://github.com/jbagg/QtZeroConf/pull/34
2020-07-06 22:05:29 -04:00
Manuel Weichselbaumer 5c4bdf1a56 Fix clang compiler errors and warnings
Signed-off-by: Jonathan Bagg <drwho@infidigm.net>
2020-03-30 13:44:49 -04:00
Jonathan Bagg ec8b3812e8 Update Bonjour sdk from 333 to 878.200.35 2020-03-28 14:51:08 -04:00
Jonathan Bagg 8625824b8b Bonjour - need to keep resolvers around for updates 2019-04-04 18:48:14 -04:00
Jonathan Bagg c286fcd2c0 Change browser protocol options so it can only be IPv4 or IPv6, not both. 2019-03-05 21:26:41 -05:00
Jonathan Bagg e92ba9936c switch from QExplicitlySharedDataPointer to QSharedPointer 2019-03-05 21:19:32 -05:00
Jonathan Bagg 800e66e4f3 qmake PREFIX. Install to Qt installation directory if no PREFIX specified. 2018-12-06 13:37:34 -05:00
Jonathan Bagg 31119114ce AvahiCore - add reference count for AvahiServer instance 2018-05-31 21:35:21 -04:00
jbagg c0bbc139aa Merge pull request #23 from mzanetti/fix-multiple-browsers-on-android
only create one avahi server instance
2018-05-31 21:16:20 -04:00
Michael Zanetti 407e84dbfc only create one avahi server instance
On platforms which create their own avahi server (e.g. Android)
the previous code would assert as there can only be one server
instantiated but creating multiple QtZeroConf objects tried
to create multiple servers.
2018-06-01 01:51:03 +02:00
Jonathan Bagg d91e9e5b81 updates from avahi project 2018-05-18 13:16:17 -04:00
Jonathan Bagg f464b49e44 Finnish thread safe stuff 2018-04-15 12:33:50 -04:00
Jonathan Bagg 339b5c83eb AvahiClient - publish does not need to store name, type, domain and port anymore. 2018-04-11 13:22:43 -04:00
JonathanS 40ef144f14 Avahi Implementation: Fix double-free on errors in GROUP_UNCOMMITED stage 2018-04-11 10:56:52 +02:00
jbagg 40cf6adf8e Merge pull request #19 from viktorgino/master
Check if work queue is empty on cleanup
2018-04-03 10:43:24 -04:00
Viktor Verebelyi 0c4e94cff0 Check if work queue is empty on cleanup 2018-04-03 15:24:31 +01:00
Jonathan Bagg cc16de7b9a QZeroConfService - isValid() no longer needed 2017-11-06 20:55:55 -05:00
Jonathan Bagg 87fd67c719 Bonjour - Simplify work queue 2017-11-06 20:54:34 -05:00
Jonathan Bagg 1750662292 additional files to ignore 2017-11-05 13:04:34 -05:00
Jonathan Bagg 5073d2d83d Make QZeroConfService's setter functions private 2017-11-05 13:00:19 -05:00
Matthias Kollmann 0c7f30b093 registered metatype for queued connections, qml integration;
Signed-off-by: Jonathan Bagg <drwho@infidigm.net>
2017-11-02 20:28:56 -04:00
Matthias Kollmann 6c9553bd5e Added debug operator<< to QZeroConfService
Signed-off-by: Jonathan Bagg <drwho@infidigm.net>
2017-11-02 19:36:02 -04:00
Jonathan Bagg 802572f50f Avahicore - switch to SharedData 2017-11-01 20:26:37 -04:00
Jonathan Bagg 0cb9616e2b Change to QExplicitlySharedDataPointer 2017-11-01 20:25:16 -04:00
Jonathan Bagg 00be205f0f Move Q_DECL_EXPORT / IMPORT into qzeroconfglobal.h 2017-10-31 20:30:42 -04:00
Jonathan Bagg bf2f5b8742 fix indentations in QZeroConfService 2017-10-31 20:07:07 -04:00
jbagg 1bb2c1dfac Merge pull request #17 from mattes-bru/shareddata
Shareddata
2017-10-25 13:23:03 -04:00
Matthias Kollmann 323d9494f5 Applied undo_some_whitespace_changes.patch 2017-10-23 20:12:00 +02:00
Matthias Kollmann 2d21502972 spaces to tabs 2017-10-19 20:51:49 +02:00
Matthias Kollmann 7f06953b6d Merge branch 'master' into shareddata 2017-10-19 20:43:00 +02:00
Matthias Kollmann 846069fb19 QZeroConfService became a Q_GADGET for easy usage in QML 2017-10-17 18:46:23 +02:00