summaryrefslogtreecommitdiffstats
path: root/avahi-common/domain.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-03-02 01:28:03 +0000
committerLennart Poettering <lennart@poettering.net>2006-03-02 01:28:03 +0000
commit4d4577c5a953e9b462cffe9a5d3ead122b7bbe42 (patch)
treecb9af054f9fd544934d22899ab4dc9f97c18f2d2 /avahi-common/domain.h
parentcc7cabaf6b1b8e67a7d1fc92c97ad708ec270859 (diff)
add new API function avahi_is_valid_fqdn()
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1168 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 53897e7..7073e1c 100644
--- a/avahi-common/domain.h
+++ b/avahi-common/domain.h
@@ -89,6 +89,9 @@ int avahi_is_valid_service_name(const char *t);
/** Return 1 when the specified string contains a valid non-FQDN host name (i.e. without dots), 0 otherwise */
int avahi_is_valid_host_name(const char *t);
+/** Return 1 when the specified string contains a valid FQDN host name (i.e. with more than one label and non-numerical), 0 otherwise. \since 0.6.9 */
+int avahi_is_valid_fqdn(const char *t);
+
/** Return some kind of hash value for the domain, useful for using domains as hash table keys. */
unsigned avahi_domain_hash(const char *name);