4 #if defined(WIN32) && defined(DLL_EXPORT)
5 # define DNSSD_API __declspec(dllexport)
14 #define DNSSD_ERROR_NOERROR 0
15 #define DNSSD_ERROR_HWADDRLEN 1
16 #define DNSSD_ERROR_OUTOFMEM 2
17 #define DNSSD_ERROR_LIBNOTFOUND 3
18 #define DNSSD_ERROR_PROCNOTFOUND 4
20 typedef struct dnssd_s dnssd_t
;
22 DNSSD_API dnssd_t
*dnssd_init(int *error
);
24 DNSSD_API
int dnssd_register_raop(dnssd_t
*dnssd
, const char *name
, unsigned short port
, const char *hwaddr
, int hwaddrlen
, int password
);
25 DNSSD_API
int dnssd_register_airplay(dnssd_t
*dnssd
, const char *name
, unsigned short port
, const char *hwaddr
, int hwaddrlen
);
27 DNSSD_API
void dnssd_unregister_raop(dnssd_t
*dnssd
);
28 DNSSD_API
void dnssd_unregister_airplay(dnssd_t
*dnssd
);
30 DNSSD_API
void dnssd_destroy(dnssd_t
*dnssd
);