chiark
/
gitweb
/
~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
event loop: remove now and tv_now from before/afterpoll API
[secnet]
/
secnet.h
diff --git
a/secnet.h
b/secnet.h
index 2439f148bdc39944beb15f2ddc15de75927fcbdd..9cc22059ad0272e189a4b54d3b5a505d67b7e71f 100644
(file)
--- a/
secnet.h
+++ b/
secnet.h
@@
-161,15
+161,12
@@
static const struct timeval *const tv_now = &tv_now_global;
/***** SCHEDULING support */
/***** SCHEDULING support */
-/* "now" is current program time, in milliseconds. It is derived
- (once) from tv_now. If nfds_io is insufficient for your needs, set
- it to the required number and return ERANGE. timeout is in milliseconds;
- if it is too high then lower it. It starts at -1 (==infinite) */
+/* If nfds_io is insufficient for your needs, set it to the required
+ number and return ERANGE. timeout is in milliseconds; if it is too
+ high then lower it. It starts at -1 (==infinite) */
typedef int beforepoll_fn(void *st, struct pollfd *fds, int *nfds_io,
typedef int beforepoll_fn(void *st, struct pollfd *fds, int *nfds_io,
- int *timeout_io, const struct timeval *tv_now,
- uint64_t *now);
-typedef void afterpoll_fn(void *st, struct pollfd *fds, int nfds,
- const struct timeval *tv_now, uint64_t *now);
+ int *timeout_io);
+typedef void afterpoll_fn(void *st, struct pollfd *fds, int nfds);
/* Register interest in the main loop of the program. Before a call
to poll() your supplied beforepoll function will be called. After
/* Register interest in the main loop of the program. Before a call
to poll() your supplied beforepoll function will be called. After