Several smaller fixes to compile on windows
[deb_shairplay.git] / src / include / dnssd.h
1 #ifndef DNSSD_H
2 #define DNSSD_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6
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
12
13 typedef struct dnssd_s dnssd_t;
14 dnssd_t *dnssd_init(const char *hwaddr, int hwaddrlen, int *error);
15
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);
18
19 void dnssd_unregister_raop(dnssd_t *dnssd);
20 void dnssd_unregister_airplay(dnssd_t *dnssd);
21
22 void dnssd_destroy(dnssd_t *dnssd);
23
24 #ifdef __cplusplus
25 }
26 #endif
27 #endif