summaryrefslogtreecommitdiffstats
path: root/avahi-core/domain-util.h
diff options
context:
space:
mode:
authorFederico Lucifredi <flucifredi@acm.org>2008-01-20 20:59:53 +0000
committerFederico Lucifredi <flucifredi@acm.org>2008-01-20 20:59:53 +0000
commit4586d4466ffd0b8913f04b63c5dbfd261fc88017 (patch)
tree3078cfaf35b159c0180db5710d00787d40c1f19c /avahi-core/domain-util.h
parent5e644b7f4ead7d696eb9a31c7aecd424ab1672ef (diff)
adding avahi_c_to_canonical_string() and avahi_count_canonical_labels() to domain-util.c.
Utility functions to compose RRSIG packet. git-svn-id: file:///home/lennart/svn/public/avahi/branches/federico2@1731 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/domain-util.h')
-rw-r--r--avahi-core/domain-util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/avahi-core/domain-util.h b/avahi-core/domain-util.h
index 01233d8..c3e3579 100644
--- a/avahi-core/domain-util.h
+++ b/avahi-core/domain-util.h
@@ -42,6 +42,12 @@ int avahi_binary_domain_cmp(const char *a, const char *b);
/** Returns 1 if the the end labels of domain are eqal to suffix */
int avahi_domain_ends_with(const char *domain, const char *suffix);
+/** returns canonical DNS representation of C string representing a domain */
+unsigned char * avahi_c_to_canonical_string(const char* input);
+
+/** returns the number of labels in a canonical DNS domain */
+uint8_t avahi_count_canonical_labels(const char* input);
+
AVAHI_C_DECL_END
#endif