diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-10-17 00:20:33 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-10-17 00:20:33 +0000 |
commit | 41f2725b37437a585ce285051bdae06f4919dc3b (patch) | |
tree | 1820274ac232dd46b907f98e9119be04eba43feb /avahi-core/publish.h | |
parent | 58ca874e460691615b131ad8692165a12f14bd09 (diff) |
* implement record updating through the new flags AVAHI_PUBLISH_UPDATE
* add new helper function avahi_server_update_service_txt() to ease TXT record updating for services
* other minor cleanups
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@790 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/publish.h')
-rw-r--r-- | avahi-core/publish.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/avahi-core/publish.h b/avahi-core/publish.h index aa9eae0..36c29cf 100644 --- a/avahi-core/publish.h +++ b/avahi-core/publish.h @@ -220,6 +220,43 @@ int avahi_server_add_service_subtype( const char *domain, /**< Specify the main type of the service you already added here */ const char *subtype /**< The new subtype for the specified service */ ); + +/** Update the TXT record for a service with the data from the specified string list */ +int avahi_server_update_service_txt_strlst( + AvahiServer *s, + AvahiSEntryGroup *g, + AvahiIfIndex interface, + AvahiProtocol protocol, + AvahiPublishFlags flags, + const char *name, + const char *type, + 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, + AvahiSEntryGroup *g, + AvahiIfIndex interface, + AvahiProtocol protocol, + AvahiPublishFlags flags, + const char *name, + const char *type, + const char *domain, + ...) AVAHI_GCC_SENTINEL; + /** The type of DNS server */ typedef enum { AVAHI_DNS_SERVER_RESOLVE, /**< Unicast DNS servers for normal resolves (_domain._udp)*/ |