]> git.meshlink.io Git - catta/blobdiff - util.h
add support for dots and backslashes in domain names (required for DNS-SD)
[catta] / util.h
diff --git a/util.h b/util.h
index 9c3edd17a379930abf77f5be2666d78f153da10f..335ab820ab255135783ead48ced5bfa1c1c0434d 100644 (file)
--- a/util.h
+++ b/util.h
@@ -9,4 +9,17 @@ gchar *flx_get_host_name(void); /* g_free() the result! */
 gint flx_timeval_compare(const GTimeVal *a, const GTimeVal *b);
 glong flx_timeval_diff(const GTimeVal *a, const GTimeVal *b);
 
+gint flx_set_cloexec(gint fd);
+gint flx_set_nonblock(gint fd);
+gint flx_wait_for_write(gint fd);
+
+GTimeVal *flx_elapse_time(GTimeVal *tv, guint msec, guint jitter);
+
+gint flx_age(const GTimeVal *a);
+
+guint flx_domain_hash(const gchar *p);
+gboolean flx_domain_equal(const gchar *a, const gchar *b);
+
+void flx_hexdump(gconstpointer p, guint size);
+
 #endif