7 #define DNSSD_ERROR_NOERROR 0
8 #define DNSSD_ERROR_HWADDRLEN 1
9 #define DNSSD_ERROR_OUTOFMEM 2
10 #define DNSSD_ERROR_LIBNOTFOUND 3
11 #define DNSSD_ERROR_PROCNOTFOUND 4
13 typedef struct dnssd_s dnssd_t
;
14 dnssd_t
*dnssd_init(const char *hwaddr
, int hwaddrlen
, int *error
);
16 int dnssd_register_raop(dnssd_t
*dnssd
, const char *name
, unsigned short port
);
17 int dnssd_register_airplay(dnssd_t
*dnssd
, const char *name
, unsigned short port
);
19 void dnssd_unregister_raop(dnssd_t
*dnssd
);
20 void dnssd_unregister_airplay(dnssd_t
*dnssd
);
22 void dnssd_destroy(dnssd_t
*dnssd
);