owntone-server/src/mdns.h

31 lines
707 B
C
Raw Normal View History

2010-09-18 10:29:06 -04:00
#ifndef __MDNS_H__
#define __MDNS_H__
2010-09-18 11:16:29 -04:00
#include "misc.h"
#define MDNS_WANT_V4 (1 << 0)
#define MDNS_WANT_V4LL (1 << 1)
#define MDNS_WANT_V6 (1 << 2)
#define MDNS_WANT_V6LL (1 << 3)
#define MDNS_WANT_DEFAULT (MDNS_WANT_V4 | MDNS_WANT_V6 | MDNS_WANT_V6LL)
2010-09-18 11:16:29 -04:00
typedef void (* mdns_browse_cb)(const char *name, const char *type, const char *domain, const char *hostname, int family, const char *address, int port, struct keyval *txt);
/* mDNS interface functions */
/* Call only from the main thread */
int
mdns_init(void);
void
mdns_deinit(void);
int
mdns_register(char *name, char *type, int port, char **txt);
int
mdns_browse(char *type, int flags, mdns_browse_cb cb);
2010-09-18 10:29:06 -04:00
#endif /* !__MDNS_H__ */