]> git.meshlink.io Git - catta/blob - libavahi-core/util.h
7755ee2503dbf966556652aaf341a926a41fbc07
[catta] / libavahi-core / util.h
1 #ifndef fooutilhfoo
2 #define fooutilhfoo
3
4 #include <glib.h>
5
6 gchar *avahi_normalize_name(const gchar *s); /* g_free() the result! */
7 gchar *avahi_get_host_name(void); /* g_free() the result! */
8
9 gint avahi_timeval_compare(const GTimeVal *a, const GTimeVal *b);
10 glong avahi_timeval_diff(const GTimeVal *a, const GTimeVal *b);
11
12 gint avahi_set_cloexec(gint fd);
13 gint avahi_set_nonblock(gint fd);
14 gint avahi_wait_for_write(gint fd);
15
16 GTimeVal *avahi_elapse_time(GTimeVal *tv, guint msec, guint jitter);
17
18 gint avahi_age(const GTimeVal *a);
19
20 guint avahi_domain_hash(const gchar *p);
21 gboolean avahi_domain_cmp(const gchar *a, const gchar *b);
22 gboolean avahi_domain_equal(const gchar *a, const gchar *b);
23
24 void avahi_hexdump(gconstpointer p, guint size);
25
26 #endif