summaryrefslogtreecommitdiffstats
path: root/include/poller.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/poller.h')
-rw-r--r--include/poller.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/poller.h b/include/poller.h
index cda5b5774b..35a2271d69 100644
--- a/include/poller.h
+++ b/include/poller.h
@@ -26,8 +26,12 @@ struct poller_async {
void (*fn)(void *);
void *ctx;
uint64_t end;
+ int active;
};
+int poller_async_register(struct poller_async *pa);
+int poller_async_unregister(struct poller_async *pa);
+
int poller_call_async(struct poller_async *pa, uint64_t delay_ns,
void (*fn)(void *), void *ctx);
int poller_async_cancel(struct poller_async *pa);