summaryrefslogtreecommitdiffstats
path: root/avahi-common/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-07-19 18:36:14 +0000
committerLennart Poettering <lennart@poettering.net>2005-07-19 18:36:14 +0000
commitac082e8eb624bc5ae0c19e91f412c8c5f12bfddf (patch)
treeed6541089d847c55395f29d77f7b1aaa1b05f014 /avahi-common/util.h
parent9598fdcd41f23f15bc4e329ef1c4aba912ce5b8a (diff)
* Change timeval arithmetic functions to use 64bit integers. This fixes some problems with long lived queries
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@170 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common/util.h')
-rw-r--r--avahi-common/util.h12
1 files changed, 7 insertions, 5 deletions
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);