diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-05-13 23:18:13 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-05-13 23:18:13 +0000 |
commit | a3596a5e3ec4937a220e6e60218639e2aba82701 (patch) | |
tree | ebe0ef5fe715ba2fd8f604935d50153958b23e28 /avahi-core/util.h | |
parent | efbf5f40328344aff24d55ddb79cd71759a605a4 (diff) |
* utf-8 collation of domain names
* case insensitive comparison of domain names
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@71 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/util.h')
-rw-r--r-- | avahi-core/util.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/avahi-core/util.h b/avahi-core/util.h index 1186cc2..6dcecfd 100644 --- a/avahi-core/util.h +++ b/avahi-core/util.h @@ -38,10 +38,18 @@ GTimeVal *avahi_elapse_time(GTimeVal *tv, guint msec, guint jitter); gint avahi_age(const GTimeVal *a); -guint avahi_domain_hash(const gchar *p); -gboolean avahi_domain_cmp(const gchar *a, const gchar *b); gboolean avahi_domain_equal(const gchar *a, const gchar *b); +gint avahi_binary_domain_cmp(const gchar *a, const gchar *b); void avahi_hexdump(gconstpointer p, guint size); +/* Read the first label from the textual domain name *name, unescape + * it and write it to dest, *name is changed to point to the next label*/ +gchar *avahi_unescape_label(const gchar **name, gchar *dest, guint size); + +/* Escape the domain name in *src and write it to *ret_name */ +gchar *avahi_escape_label(const guint8* src, guint src_length, gchar **ret_name, guint *ret_size); + +gint avahi_domain_hash(const gchar *s); + #endif |