From d0a9e76f8f858b7dd98c9950a376dc347b230af9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 3 Oct 2005 22:56:14 +0000 Subject: Add avahi_service_name_snprint() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@683 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-common/domain.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'avahi-common/domain.h') diff --git a/avahi-common/domain.h b/avahi-common/domain.h index 0f16e54..34f0681 100644 --- a/avahi-common/domain.h +++ b/avahi-common/domain.h @@ -72,6 +72,9 @@ unsigned avahi_domain_hash(const char *name); /** Returns 1 if the the end labels of domain are eqal to suffix */ int avahi_domain_ends_with(const char *domain, const char *suffix); +/** Construct a valid complete service name from a name, a type and a domain */ +int avahi_service_name_snprint(char *p, size_t size, const char *name, const char *type, const char *domain); + #ifndef DOXYGEN_SHOULD_SKIP_THIS AVAHI_C_DECL_END #endif -- cgit