summaryrefslogtreecommitdiffstats
path: root/avahi-common/domain.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-10-03 22:56:14 +0000
committerLennart Poettering <lennart@poettering.net>2005-10-03 22:56:14 +0000
commitd0a9e76f8f858b7dd98c9950a376dc347b230af9 (patch)
treebc30757ca03e5240229f7078a91007532386e406 /avahi-common/domain.h
parented851746209a39f7c835d74aa1996a478e1b7702 (diff)
Add avahi_service_name_snprint()
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@683 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common/domain.h')
-rw-r--r--avahi-common/domain.h3
1 files changed, 3 insertions, 0 deletions
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