X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=blobdiff_plain;f=service.h;h=c2f51f4b6a236b046f2735cc12de779262966265;hp=6aeea0f695dfffd51957b6aa7b7aa35ea696fc3a;hb=c0c78c92d57c53276bb7f08468bcc716ba272497;hpb=70ec71015a42e6e4e04b0281b80ec80e5f5f959a diff --git a/service.h b/service.h index 6aeea0f..c2f51f4 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 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_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); #endif