X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fentry.c;h=74f44f1f81aa633364fcf2edeb6f559292a0a7d3;hb=263515cd1d7b52ce2ad3dc55a93b9d6f730133f1;hp=be215ddf1c97482fb80630c349c480b604ef4b6c;hpb=a6442df016687a958b0871c5dc1dccedafafd6b4;p=catta diff --git a/avahi-core/entry.c b/avahi-core/entry.c index be215dd..74f44f1 100644 --- a/avahi-core/entry.c +++ b/avahi-core/entry.c @@ -44,6 +44,7 @@ #include "browse.h" #include "log.h" #include "util.h" +#include "dns-srv-rr.h" void avahi_entry_free(AvahiServer*s, AvahiEntry *e) { AvahiEntry *t; @@ -483,58 +484,6 @@ static int server_add_txt_strlst_nocopy( return ret; } -int avahi_server_add_txt_strlst( - AvahiServer *s, - AvahiSEntryGroup *g, - AvahiIfIndex interface, - AvahiProtocol protocol, - AvahiPublishFlags flags, - uint32_t ttl, - const char *name, - AvahiStringList *strlst) { - - assert(s); - - return server_add_txt_strlst_nocopy(s, g, interface, protocol, flags, ttl, name, avahi_string_list_copy(strlst)); -} - -int avahi_server_add_txt_va( - AvahiServer *s, - AvahiSEntryGroup *g, - AvahiIfIndex interface, - AvahiProtocol protocol, - AvahiPublishFlags flags, - uint32_t ttl, - const char *name, - va_list va) { - - assert(s); - - return server_add_txt_strlst_nocopy(s, g, interface, protocol, flags, ttl, name, avahi_string_list_new_va(va)); -} - -int avahi_server_add_txt( - AvahiServer *s, - AvahiSEntryGroup *g, - AvahiIfIndex interface, - AvahiProtocol protocol, - AvahiPublishFlags flags, - uint32_t ttl, - const char *name, - ...) { - - va_list va; - int ret; - - assert(s); - - va_start(va, name); - ret = avahi_server_add_txt_va(s, g, interface, protocol, flags, ttl, name, va); - va_end(va); - - return ret; -} - static AvahiStringList *add_magic_cookie( AvahiServer *s, AvahiStringList *strlst) {