X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=blobdiff_plain;f=service.h;h=67a425abbae4feca226ab55bce255f22094295e6;hp=6aeea0f695dfffd51957b6aa7b7aa35ea696fc3a;hb=fd5a160a15c48a97f7fc755c1310f17c869f0233;hpb=70ec71015a42e6e4e04b0281b80ec80e5f5f959a diff --git a/service.h b/service.h index 6aeea0f..67a425a 100644 --- a/service.h +++ b/service.h @@ -14,13 +14,10 @@ #ifndef _SERVICE_H__ #define _SERVICE_H__ -extern char *hostname; -extern char *service_name(const char *domain); -extern void service_init(void); +extern const char *sdudp; +extern void service_init(int announce); extern void service_cleanup(void); -extern void service_announce(struct interface *iface); -extern void service_announce_services(struct interface *iface, const char *service); -extern void service_reply(struct interface *iface, const char *match); -extern void service_reply_a(struct interface *iface, int type); +extern void service_reply(struct interface *iface, struct sockaddr *to, const char *match, int ttl); +extern void service_announce_services(struct interface *iface, struct sockaddr *to, int ttl); #endif