X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=util.h;h=517c2f1b8efa3f9712abf1afab8b278c2f45da68;hb=8e7f83aa5b6d910e80c56b31f4eb79b02e7ca67b;hp=a5d9feb791dc22ed7a9ee8ab741eb4db1891224b;hpb=33ccd714ea9469b5b7d3b36bbe468ba1b0f31dfc;p=catta diff --git a/util.h b/util.h index a5d9feb..517c2f1 100644 --- a/util.h +++ b/util.h @@ -3,7 +3,16 @@ #include -gchar *flx_normalize_name(gchar *s); -gchar *flx_get_host_name(void); +gchar *flx_normalize_name(const gchar *s); /* g_free() the result! */ +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); #endif