X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-client%2Fpublish.h;h=da0d467fce900b88df63eeb9755968e47609d6c0;hb=01a71ceb27a06747075c320613184d729167980a;hp=cdce887ed2103d5f9032d68f6f5f883b166665aa;hpb=3adbda2cd5be48b7c630325f0f92e315d7eb2cfb;p=catta diff --git a/avahi-client/publish.h b/avahi-client/publish.h index cdce887..da0d467 100644 --- a/avahi-client/publish.h +++ b/avahi-client/publish.h @@ -39,9 +39,7 @@ * service using the client interface to avahi-daemon. It behaves like a network * printer registering both an IPP and a BSD LPR service. */ -#ifndef DOXYGEN_SHOULD_SKIP_THIS AVAHI_C_DECL_BEGIN -#endif /** An entry group object */ typedef struct AvahiEntryGroup AvahiEntryGroup; @@ -96,19 +94,6 @@ int avahi_entry_group_add_service_strlst( uint16_t port, AvahiStringList *txt); -/** Add a service, takes a NULL terminated va_list for text records */ -int avahi_entry_group_add_service_va( - AvahiEntryGroup *group, - AvahiIfIndex interface, - AvahiProtocol protocol, - AvahiPublishFlags flags, - const char *name, - const char *type, - const char *domain, - const char *host, - uint16_t port, - va_list va); - /** Add a subtype for a service */ int avahi_entry_group_add_service_subtype( AvahiEntryGroup *group, @@ -142,28 +127,28 @@ int avahi_entry_group_update_service_txt_strlst( const char *domain, AvahiStringList *strlst); -/** Update a TXT record for an existing service */ -int avahi_entry_group_update_service_txt_va( - AvahiEntryGroup *g, +/** Add a host/address pair */ +int avahi_entry_group_add_address( + AvahiEntryGroup *group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, - const char *name, - const char *type, - const char *domain, - va_list va); + const char *name, + const AvahiAddress *a); -/** Add a host/address pair */ -int avahi_entry_group_add_address( +/** Add an arbitrary record */ +int avahi_entry_group_add_record( AvahiEntryGroup *group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, - const AvahiAddress *a); + uint16_t clazz, + uint16_t type, + uint32_t ttl, + const void *rdata, + size_t size); -#ifndef DOXYGEN_SHOULD_SKIP_THIS AVAHI_C_DECL_END -#endif #endif