summaryrefslogtreecommitdiffstats
path: root/lib/tevent/tevent.h
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2009-02-16 23:34:15 +0100
committerKai Blin <kai@samba.org>2009-02-17 09:19:31 +0100
commit48b874e3764a20952dfd5e2957a3074073b480db (patch)
treea740b0c89205c06b9856d553a5594d95799550bd /lib/tevent/tevent.h
parent046cb24d0ad76b8e01c9c7d0d0146af9f6576047 (diff)
downloadsamba-48b874e3764a20952dfd5e2957a3074073b480db.tar.gz
samba-48b874e3764a20952dfd5e2957a3074073b480db.tar.xz
samba-48b874e3764a20952dfd5e2957a3074073b480db.zip
tevent: Rename ev_timeval* functions to tevent_timeval, export them.
Also add tevent_timeval_add() and tevent_timeval_current_ofs() to help not depending on lub/util/time.c for things that just need tevent
Diffstat (limited to 'lib/tevent/tevent.h')
-rw-r--r--lib/tevent/tevent.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h
index 9c88bb77fb9..8e3d0973eb1 100644
--- a/lib/tevent/tevent.h
+++ b/lib/tevent/tevent.h
@@ -300,6 +300,25 @@ bool tevent_req_is_error(struct tevent_req *req,
uint64_t *error);
+int tevent_timeval_compare(const struct timeval *tv1,
+ const struct timeval *tv2);
+
+struct timeval tevent_timeval_zero(void);
+
+struct timeval tevent_timeval_current(void);
+
+struct timeval tevent_timeval_set(uint32_t secs, uint32_t usecs);
+
+struct timeval tevent_timeval_until(const struct timeval *tv1,
+ const struct timeval *tv2);
+
+bool tevent_timeval_is_zero(const struct timeval *tv);
+
+struct timeval tevent_timeval_add(const struct timeval *tv, uint32_t secs,
+ uint32_t usecs);
+
+struct timeval tevent_timeval_current_ofs(uint32_t secs, uint32_t usecs);
+
#ifdef TEVENT_COMPAT_DEFINES
#define event_context tevent_context