diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-10-18 22:25:26 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-10-18 22:25:26 +0000 |
commit | 00a4a88135d94fa65c4abac3a4ef17602adeb020 (patch) | |
tree | 632d1383e3723e33c04bf169e01fdfad82de7c54 /avahi-core | |
parent | 2be556032ed87b7627a135174339c5e5a0e8fc44 (diff) |
in order to reduce our API size, dropping avahi_entry_group_add_service_va(), avahi_entry_group_update_service_txt_va(), avahi_server_add_service_va(, avahi_server_update_service_txt_va()
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@815 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core')
-rw-r--r-- | avahi-core/entry.c | 39 | ||||
-rw-r--r-- | avahi-core/publish.h | 26 |
2 files changed, 2 insertions, 63 deletions
diff --git a/avahi-core/entry.c b/avahi-core/entry.c index 3b73ff3..e4008bc 100644 --- a/avahi-core/entry.c +++ b/avahi-core/entry.c @@ -612,26 +612,6 @@ int avahi_server_add_service_strlst( return server_add_service_strlst_nocopy(s, g, interface, protocol, flags, name, type, domain, host, port, avahi_string_list_copy(strlst)); } -int avahi_server_add_service_va( - AvahiServer *s, - AvahiSEntryGroup *g, - AvahiIfIndex interface, - AvahiProtocol protocol, - AvahiPublishFlags flags, - const char *name, - const char *type, - const char *domain, - const char *host, - uint16_t port, - va_list va) { - - assert(s); - assert(type); - assert(name); - - return server_add_service_strlst_nocopy(s, g, interface, protocol, flags, name, type, domain, host, port, avahi_string_list_new_va(va)); -} - int avahi_server_add_service( AvahiServer *s, AvahiSEntryGroup *g, @@ -649,7 +629,7 @@ int avahi_server_add_service( int ret; va_start(va, port); - ret = avahi_server_add_service_va(s, g, interface, protocol, flags, name, type, domain, host, port, va); + ret = server_add_service_strlst_nocopy(s, g, interface, protocol, flags, name, type, domain, host, port, avahi_string_list_new_va(va)); va_end(va); return ret; @@ -716,21 +696,6 @@ int avahi_server_update_service_txt_strlst( return server_update_service_txt_strlst_nocopy(s, g, interface, protocol, flags, name, type, domain, avahi_string_list_copy(strlst)); } -/** Update the TXT record for a service with the NULL terminated list of strings of the va_list. */ -int avahi_server_update_service_txt_va( - AvahiServer *s, - AvahiSEntryGroup *g, - AvahiIfIndex interface, - AvahiProtocol protocol, - AvahiPublishFlags flags, - const char *name, - const char *type, - const char *domain, - va_list va) { - - return server_update_service_txt_strlst_nocopy(s, g, interface, protocol, flags, name, type, domain, avahi_string_list_new_va(va)); -} - /** Update the TXT record for a service with the NULL termonate list of strings */ int avahi_server_update_service_txt( AvahiServer *s, @@ -747,7 +712,7 @@ int avahi_server_update_service_txt( int ret; va_start(va, domain); - ret = avahi_server_update_service_txt_va(s, g, interface, protocol, flags, name, type, domain, va); + ret = server_update_service_txt_strlst_nocopy(s, g, interface, protocol, flags, name, type, domain, avahi_string_list_new_va(va)); va_end(va); return ret; diff --git a/avahi-core/publish.h b/avahi-core/publish.h index 38e5116..281ed42 100644 --- a/avahi-core/publish.h +++ b/avahi-core/publish.h @@ -121,20 +121,6 @@ int avahi_server_add_service( uint16_t port, /**< Port number of the service */ ... /**< Text records, terminated by NULL */) AVAHI_GCC_SENTINEL; -/** Mostly identical to avahi_server_add_service(), but takes an va_list for the TXT records. */ -int avahi_server_add_service_va( - AvahiServer *s, - AvahiSEntryGroup *g, - AvahiIfIndex interface, - AvahiProtocol protocol, - AvahiPublishFlags flags, - const char *name, - const char *type, - const char *domain, - const char *host, - uint16_t port, - va_list va); - /** Mostly identical to avahi_server_add_service(), but takes an AvahiStringList object for the TXT records. The AvahiStringList object is copied. */ int avahi_server_add_service_strlst( AvahiServer *s, @@ -173,18 +159,6 @@ int avahi_server_update_service_txt_strlst( const char *domain, AvahiStringList *strlst); -/** Update the TXT record for a service with the NULL terminated list of strings of the va_list. */ -int avahi_server_update_service_txt_va( - AvahiServer *s, - AvahiSEntryGroup *g, - AvahiIfIndex interface, - AvahiProtocol protocol, - AvahiPublishFlags flags, - const char *name, - const char *type, - const char *domain, - va_list va); - /** Update the TXT record for a service with the NULL termonate list of strings */ int avahi_server_update_service_txt( AvahiServer *s, |