summaryrefslogtreecommitdiff
path: root/ot_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'ot_event.h')
-rw-r--r--ot_event.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ot_event.h b/ot_event.h
index 6023134..aa007d0 100644
--- a/ot_event.h
+++ b/ot_event.h
@@ -29,6 +29,11 @@ int event_add(int fd, int what, uint32_t generation);
29int event_modify(int fd, int what, uint32_t generation); 29int event_modify(int fd, int what, uint32_t generation);
30int event_del(int fd); 30int event_del(int fd);
31 31
32/* Stop watching a descriptor and close it. Where the kernel drops a closed
33 descriptor from its set by itself, this is one system call where doing the
34 two separately would be two. */
35int event_close(int fd);
36
32/* Waits at most timeout_ms, or indefinitely when that is negative, and fills 37/* Waits at most timeout_ms, or indefinitely when that is negative, and fills
33 out with up to max ready descriptors. Returns how many, or -1. */ 38 out with up to max ready descriptors. Returns how many, or -1. */
34int event_wait(ot_event *out, int max, int timeout_ms); 39int event_wait(ot_event *out, int max, int timeout_ms);