diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-04-05 15:25:28 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-04-05 15:25:28 +0200 |
commit | 13549775092afa9215de8468e34f6d194c2fd8db (patch) | |
tree | 46a54c5b1cc8fe05771f81ed89ce6decb8b64491 /include | |
parent | efe18167d6ce59b263c179a6e2d01aa875c05cf8 (diff) |
new main loop in place
Change-Id: If297e0a76e74422d456447be52cca460c9e237b3
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include')
-rw-r--r-- | include/afb-plugin.h | 2 | ||||
-rw-r--r-- | include/afb-poll-itf.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/afb-plugin.h b/include/afb-plugin.h index ba86e181..4064f9e9 100644 --- a/include/afb-plugin.h +++ b/include/afb-plugin.h @@ -67,7 +67,7 @@ struct AFB_interface { int verbosity; enum AFB_Mode mode; - struct afb_poll (*poll_open)(int fd, uint32_t events, void (*process)(void *closure, int fd, uint32_t events), void *closure); + struct afb_poll (*poll_open)(int fd, void *closure); }; extern const struct AFB_plugin *pluginRegister (const struct AFB_interface *interface); diff --git a/include/afb-poll-itf.h b/include/afb-poll-itf.h index 4ce1fa48..2c8889b6 100644 --- a/include/afb-poll-itf.h +++ b/include/afb-poll-itf.h @@ -17,7 +17,9 @@ struct afb_poll_itf { - int (*update)(void *data, uint32_t events); + int (*on_readable)(void *, void (*cb)(void *)); + int (*on_writable)(void *, void (*cb)(void *)); + int (*on_hangup)(void *, void (*cb)(void *)); void (*close)(void *data); }; |