4 #include <Foundation/Foundation.h>
10 main(int argc, char *argv[])
12 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
13 const char hwaddr[] = { 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB };
16 dnssd = dnssd_init(NULL);
18 printf("Failed to init dnssd\n");
21 dnssd_register_raop(dnssd, "Test", 5000, hwaddr, sizeof(hwaddr));
22 dnssd_register_airplay(dnssd, "Test", 6000, hwaddr, sizeof(hwaddr));
26 dnssd_unregister_raop(dnssd);
27 dnssd_unregister_airplay(dnssd);