summaryrefslogtreecommitdiffstats
path: root/libavahi-core/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-05-06 15:31:30 +0000
committerLennart Poettering <lennart@poettering.net>2005-05-06 15:31:30 +0000
commitf93eca3530bef2cc23ffe6c3a04493ad171c2aed (patch)
treeb1053873411a868b751d7471cd4cb02fa54ed29a /libavahi-core/util.h
parent42c9b99f2bb21d0ff1f1918314f9d5dd82a62763 (diff)
move the sources to libavahi-core/
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@50 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'libavahi-core/util.h')
-rw-r--r--libavahi-core/util.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/libavahi-core/util.h b/libavahi-core/util.h
new file mode 100644
index 0000000..7755ee2
--- /dev/null
+++ b/libavahi-core/util.h
@@ -0,0 +1,26 @@
+#ifndef fooutilhfoo
+#define fooutilhfoo
+
+#include <glib.h>
+
+gchar *avahi_normalize_name(const gchar *s); /* g_free() the result! */
+gchar *avahi_get_host_name(void); /* g_free() the result! */
+
+gint avahi_timeval_compare(const GTimeVal *a, const GTimeVal *b);
+glong avahi_timeval_diff(const GTimeVal *a, const GTimeVal *b);
+
+gint avahi_set_cloexec(gint fd);
+gint avahi_set_nonblock(gint fd);
+gint avahi_wait_for_write(gint fd);
+
+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);
+
+void avahi_hexdump(gconstpointer p, guint size);
+
+#endif