diff options
Diffstat (limited to 'evloop/timeheap.h')
| -rw-r--r-- | evloop/timeheap.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/evloop/timeheap.h b/evloop/timeheap.h new file mode 100644 index 0000000..8a712c5 --- /dev/null +++ b/evloop/timeheap.h @@ -0,0 +1,19 @@ +#ifndef BTPD_TIMEHEAP_H +#define BTPD_TIMEHEAP_H + +struct th_handle { + int i; + void *data; +}; + +int timeheap_init(void); +int timeheap_size(void); + +int timeheap_insert(struct th_handle *h, struct timespec *t); +void timeheap_remove(struct th_handle *h); +void timeheap_change(struct th_handle *h, struct timespec *t); + +void *timeheap_remove_top(void); +struct timespec timeheap_top(void); + +#endif |