diff options
author | Kai Blin <kai@samba.org> | 2009-02-16 23:34:15 +0100 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2009-02-17 09:19:31 +0100 |
commit | 48b874e3764a20952dfd5e2957a3074073b480db (patch) | |
tree | a740b0c89205c06b9856d553a5594d95799550bd /lib/tevent/tevent.h | |
parent | 046cb24d0ad76b8e01c9c7d0d0146af9f6576047 (diff) | |
download | samba-48b874e3764a20952dfd5e2957a3074073b480db.tar.gz samba-48b874e3764a20952dfd5e2957a3074073b480db.tar.bz2 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.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 |