Add avahi code to look for the rmeote control information for the client and get the port number from it.

This commit is contained in:
Mike Brady
2017-10-05 17:39:32 +01:00
parent 44c39fee6a
commit 139c18bf3e
12 changed files with 314 additions and 137 deletions
+16
View File
@@ -104,6 +104,22 @@ void mdns_unregister(void) {
}
}
void mdns_dacp_monitor(char* dacp_id,uint16_t *port,void** private_pointer) {
if ((config.mdns) && (config.mdns->mdns_dacp_monitor)) {
int error = config.mdns->mdns_dacp_monitor(dacp_id,port,private_pointer);
if (error) {
debug(1,"Error starting a DACP monitor.");
}
} else
debug(1,"Can't start a DACP monitor.");
}
void mdns_dacp_dont_monitor(void** private_pointer) {
if ((config.mdns) && (config.mdns->mdns_dacp_dont_monitor)) {
config.mdns->mdns_dacp_dont_monitor(private_pointer);
} else
debug(1,"Can't stop a DACP monitor.");
}
void mdns_ls_backends(void) {
mdns_backend **b = NULL;
printf("Available mDNS backends: \n");