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/entry.c | |
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/entry.c')
-rw-r--r-- | avahi-core/entry.c | 39 |
1 files changed, 2 insertions, 37 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; |