owntone-server/src/mdns.h

24 lines
506 B
C
Raw Normal View History

2010-09-18 10:29:06 -04:00
#ifndef __MDNS_H__
#define __MDNS_H__
#include <avahi-common/strlst.h>
typedef void (* mdns_browse_cb)(const char *name, const char *type, const char *domain, const char *hostname, int family, const char *address, int port, AvahiStringList *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, mdns_browse_cb cb);
2010-09-18 10:29:06 -04:00
#endif /* !__MDNS_H__ */