Mike Brady
26efce2141
Fix segmentation fault bug when a client's DACP status is withdrawn. Not enough testing...
2017-12-13 23:46:11 +00:00
Mike Brady
6ac6c30900
Quieten some debug messages
2017-12-12 11:55:45 +00:00
Mike Brady
492f365ab5
Fix a small conflict in mdns_avahi.c
2017-12-04 08:48:04 +00:00
Mike Brady
88c550663c
hooking up a dacp scanner
2017-12-02 19:52:39 +00:00
Mike Brady
af50e91232
Intermediate
2017-12-02 16:21:46 +00:00
Mike Brady
e0ecdac91a
Fix compilation bug if dbus or mpris not selected
2017-11-27 11:26:23 +00:00
Mike Brady
fe3b70b4b2
Begin a DACP monitor. Very incomplete -- work in progress only
2017-11-27 09:39:40 +00:00
Mike Brady
532c77eb23
clang-format only
2017-11-12 14:25:09 +01:00
Mike Brady
91c6587d78
Address a warning about a buffer being too short.
2017-10-25 19:31:10 +01:00
Mike Brady
3cb86f400b
Add the 'dapo' metadata message, giving the DACP port number when found
2017-10-15 14:23:09 +01:00
Mike Brady
d343a851c0
Some spring cleaning using clang-format
2017-10-05 17:48:24 +01:00
Mike Brady
139c18bf3e
Add avahi code to look for the rmeote control information for the client and get the port number from it.
2017-10-05 17:39:32 +01:00
Denys Berkovskyy
69c042585a
Fix various typos.
2017-03-21 11:16:05 +00:00
Mike Brady
cf29625d2c
Clang Format
2017-02-11 12:12:07 +00:00
Mike Brady
2cab35cd55
Add a new setting to specify the interface the service should be provided on.
2017-02-05 13:47:01 +00:00
Jörg Krause
9e61da91c0
mdns: avahi: handle avahi client failure
...
Handle the avahi client failure so that in case of a restart of the avahi
daemon the shairport-sync daemon has not to be restarted, too.
The handling is based on the error handling of avahi-publish [1].
[1]
https://github.com/lathiat/avahi/blob/master/avahi-utils/avahi-publish.c#L156-L179
2016-11-24 14:51:17 +01:00
Jörg Krause
e5ec3da9da
mdns: avahi: set AVAHI_CLIENT_NO_FAIL in avahi_client_new()
...
For whatever reasons `avahi_client_new` passes the value `0` as its
second parameter. However, the second parameter is of type
[`AvahiClientFlags`](http://avahi.org/doxygen/html/client_8h_source.html#l00048 )
with the possible values:
``` c
typedef enum {
AVAHI_CLIENT_IGNORE_USER_CONFIG = 1,
AVAHI_CLIENT_NO_FAIL = 2
} AvahiClientFlags;
```
Setting `AVAHI_CLIENT_NO_FAIL` has the benefit that the shairport-sync
daemon does not depend on the order of the init process whether the
avahi daemon is already up.
2016-11-24 14:46:59 +01:00
Mike Brady
064bd293c5
Tidy up with a clang-format
2016-09-11 10:35:53 +01:00
Mike Brady
c50af16abb
Disable avahi browser function
2016-05-02 09:45:00 +01:00
Mke Brady
dace5b0511
Cleaned up a few warnings detected by clang
2016-04-05 16:48:29 +01:00
Mike Brady
f864adf3d4
Add experimental Avahi browser code to detect ip numbers used to advertise service
2016-04-02 15:10:41 +00:00
Mike Brady
ca8ae1fa62
Add ability to change regtype; tidy up and quieten some diagnostic messages.
2016-04-01 16:29:09 +01:00
Mike McKnight
9323e65df8
Merge upstream and rebase local mods to development
2016-03-31 08:04:58 -06:00
Mike McKnight
357f047ca4
Cleaned up a little
2016-03-30 21:49:08 -06:00
Mike McKnight
490933984e
Fix for name collisions in avahi
2016-03-30 20:49:24 -06:00
Mke Brady
7b3694d9a6
Correct mishandling of avahi poll-thread error conditions. This was causing Shairport Sync to crash e.g. when the network disappeared
2016-03-17 09:41:32 +00:00
Mke Brady
87a0475c16
Reformat using clang-format.
2015-06-01 23:16:50 +01:00
Mike Brady
99df6fe537
Use config.metadata_enabled in place of config.meta-dir.
2015-05-04 17:20:50 +01:00
Mke Brady
75f3f912c7
Make metadata support a compile-time option. Clean up a few definitions.
2015-04-03 13:47:58 +01:00
Mke Brady
46412eb148
Reinistate after bugfix: Change bonjour advertisement if metadata sought, add sender name metadata, use own base64 encoder
2015-02-26 10:56:49 +00:00
Mke Brady
bcca3a6f88
Revert "Change bonjour advertisement if metadata sought, add sender name metadata, use own base64 encoder"
...
This reverts commit 7d339b1b37 .
UNstable partial updates.
2015-02-25 20:55:29 +00:00
Mike Brady
7d339b1b37
Change bonjour advertisement if metadata sought, add sender name metadata, use own base64 encoder
2015-02-25 18:25:29 +00:00
Mike Brady
f0195c5d79
Stop incorrect warning about malloc/free
2014-08-24 16:17:56 +01:00
Mike Brady
1a0932d92a
Remove extra returns and generally clean up some debug messages.
2014-05-19 19:12:13 +01:00
Paul Lietar and James Laird
958fceb60a
Add a command-line option to force the mDNS backend
...
Add this option to the system-v init script.
2013-10-22 10:33:41 +11:00
Paul Lietar and James Laird
3896909080
Reorganize mDNS advertisement
...
mDNS is now handled more or less in the same way audio is.
Multiple mDNS backends are available, shairport tries them all until one
works.
This makes it, IMHO, cleaner, and easier to add other mDNS backends in
the future, such as using tinysvcmdns or dns-sd library.
Also it will also allow to define mDNS backends as plugins, in a similar
way it is done in PR #230 .
2013-10-22 10:33:41 +11:00