From 48b874e3764a20952dfd5e2957a3074073b480db Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Mon, 16 Feb 2009 23:34:15 +0100 Subject: 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 --- lib/tevent/tevent.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'lib/tevent/tevent.h') diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index 9c88bb77fb..8e3d0973eb 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 -- cgit