X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=avahi-common%2Futil.h;h=731a5a13acecd03a5f1954d287a54691b0f03800;hb=f43187377e0c89ba02ca23e88efa01bbb255e037;hp=d590423686dcdf8c2aa95d57c879fdebba8e3d79;hpb=14f8d9beb7ef14b0aab5512345e09109bdd8cb0c;p=catta diff --git a/avahi-common/util.h b/avahi-common/util.h index d590423..731a5a1 100644 --- a/avahi-common/util.h +++ b/avahi-common/util.h @@ -28,20 +28,22 @@ AVAHI_C_DECL_BEGIN +typedef gint64 AvahiUsec; + 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); +AvahiUsec avahi_timeval_diff(const GTimeVal *a, const GTimeVal *b); +GTimeVal* avahi_timeval_add(GTimeVal *a, AvahiUsec usec); + +AvahiUsec avahi_age(const GTimeVal *a); +GTimeVal *avahi_elapse_time(GTimeVal *tv, guint msec, guint jitter); 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); - -glong avahi_age(const GTimeVal *a); - gboolean avahi_domain_equal(const gchar *a, const gchar *b); gint avahi_binary_domain_cmp(const gchar *a, const gchar *b);