Make metadata support a compile-time option. Clean up a few definitions.

This commit is contained in:
Mke Brady
2015-04-03 13:47:58 +01:00
parent 7d947205b9
commit 75f3f912c7
11 changed files with 82 additions and 63 deletions
+4 -1
View File
@@ -33,12 +33,15 @@ static DNSServiceRef service;
static int mdns_dns_sd_register(char *apname, int port) {
const char *recordwithoutmetadata[] = { MDNS_RECORD_WITHOUT_METADATA, NULL };
#ifdef CONFIG_METADATA
const char *recordwithmetadata[] = { MDNS_RECORD_WITH_METADATA, NULL };
#endif
char **record;
#ifdef CONFIG_METADATA
if (config.meta_dir)
record = recordwithmetadata;
else
#endif
record = recordwithoutmetadata;
uint16_t length = 0;