Update the mdns stuff to work with a string, update audio_alsa rtp.c, rtsp.c and shairport.c to build and work in AirPlay 1 but with AirPlay 2 code in place. Some of it is #defined out.

This commit is contained in:
Mike Brady
2021-04-30 09:29:30 +01:00
parent bdfb1c6ed6
commit 3a02b79a62
11 changed files with 356 additions and 117 deletions
+4 -2
View File
@@ -80,7 +80,8 @@ static int fork_execvp(const char *file, char *const argv[]) {
return response;
}
static int mdns_external_avahi_register(char *apname, __attribute__((unused)) int port) {
static int mdns_external_avahi_register(char *apname, __attribute__((unused)) int port,
__attribute__((unused)) char **txt_records) {
char mdns_port[6];
snprintf(mdns_port, sizeof(mdns_port), "%d", config.port);
@@ -119,7 +120,8 @@ static int mdns_external_avahi_register(char *apname, __attribute__((unused)) in
return -1;
}
static int mdns_external_dns_sd_register(char *apname, __attribute__((unused)) int port) {
static int mdns_external_dns_sd_register(char *apname, __attribute__((unused)) int port,
__attribute__((unused)) char **txt_records) {
char mdns_port[6];
snprintf(mdns_port, sizeof(mdns_port), "%d", config.port);