ubus: assume that the service iface can be NULL
[project/mdnsd.git] / service.h
index c2f51f4b6a236b046f2735cc12de779262966265..9dea1f62b9026e6f2197f2e6ee050c94cb729aea 100644 (file)
--- a/service.h
+++ b/service.h
 #ifndef _SERVICE_H__
 #define _SERVICE_H__
 
+struct hostname {
+       struct vlist_node node;
+
+       const char *hostname;
+};
+extern struct vlist_tree hostnames;
+
 extern void service_init(int announce);
 extern void service_cleanup(void);
-extern void service_announce(struct interface *iface, int ttl);
-extern void service_announce_services(struct interface *iface, const char *service, int ttl);
-extern void service_reply(struct interface *iface, const char *match, int ttl);
+extern void service_reply(struct interface *iface, struct sockaddr *to, const char *instance, const char *service_domain, int ttl);
+extern void service_announce_services(struct interface *iface, struct sockaddr *to, int ttl);
 
 #endif