Set default logging level to warning
[deb_shairplay.git] / src / include / dnssd.h
CommitLineData
2340bcd3
JVH
1#ifndef DNSSD_H
2#define DNSSD_H
f21dfead
JVH
3
4#if defined(WIN32) && defined(DLL_EXPORT)
5# define DNSSD_API __declspec(dllexport)
6#else
7# define DNSSD_API
8#endif
9
2340bcd3
JVH
10#ifdef __cplusplus
11extern "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
20typedef struct dnssd_s dnssd_t;
2340bcd3 21
067f00ef 22DNSSD_API dnssd_t *dnssd_init(int *error);
f21dfead 23
e4169f77 24DNSSD_API int dnssd_register_raop(dnssd_t *dnssd, const char *name, unsigned short port, const char *hwaddr, int hwaddrlen, int password);
067f00ef 25DNSSD_API int dnssd_register_airplay(dnssd_t *dnssd, const char *name, unsigned short port, const char *hwaddr, int hwaddrlen);
2340bcd3 26
f21dfead
JVH
27DNSSD_API void dnssd_unregister_raop(dnssd_t *dnssd);
28DNSSD_API void dnssd_unregister_airplay(dnssd_t *dnssd);
2340bcd3 29
f21dfead 30DNSSD_API void dnssd_destroy(dnssd_t *dnssd);
2340bcd3
JVH
31
32#ifdef __cplusplus
33}
34#endif
35#endif