#ifndef __MDNS_AVAHI_H__ #define __MDNS_AVAHI_H__ #include typedef void (* mdns_browse_cb)(const char *name, const char *type, const char *domain, const char *hostname, 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); #endif /* !__MDNS_AVAHI_H__ */