Remove newlines from logger calls.
[deb_shairplay.git] / src / include / dnssd.h
1 #ifndef DNSSD_H
2 #define DNSSD_H
3
4 #if defined(WIN32) && defined(DLL_EXPORT)
5 # define DNSSD_API __declspec(dllexport)
6 #else
7 # define DNSSD_API
8 #endif
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
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
19
20 typedef struct dnssd_s dnssd_t;
21
22 DNSSD_API dnssd_t *dnssd_init(int *error);
23
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);
26
27 DNSSD_API void dnssd_unregister_raop(dnssd_t *dnssd);
28 DNSSD_API void dnssd_unregister_airplay(dnssd_t *dnssd);
29
30 DNSSD_API void dnssd_destroy(dnssd_t *dnssd);
31
32 #ifdef __cplusplus
33 }
34 #endif
35 #endif