summaryrefslogtreecommitdiffstats
path: root/include/afb-plugin.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-04-15 16:40:38 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-04-15 16:40:38 +0200
commit68a8eaafe5f43480f29308bfd2ec12ad54da43f1 (patch)
tree5c8782a09cb48df20695fa6ba562e00f523d22f3 /include/afb-plugin.h
parent67966a2f96613d833f493ef3773c442d35f8ed31 (diff)
use upoll for event loop
also add '#pragma once' in headers Change-Id: I90cc2d53ec60d4d1e66cf0f229109621e4019864 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include/afb-plugin.h')
-rw-r--r--include/afb-plugin.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/afb-plugin.h b/include/afb-plugin.h
index 4064f9e9..2c9935e6 100644
--- a/include/afb-plugin.h
+++ b/include/afb-plugin.h
@@ -15,6 +15,8 @@
* limitations under the License.
*/
+#pragma once
+
struct afb_req;
/* Plugin Type */
@@ -61,13 +63,12 @@ enum AFB_Mode {
AFB_MODE_GLOBAL
};
-struct afb_poll;
-
struct AFB_interface
{
int verbosity;
enum AFB_Mode mode;
- struct afb_poll (*poll_open)(int fd, void *closure);
+ const struct afb_pollitf *pollitf;
+ void *pollclosure;
};
extern const struct AFB_plugin *pluginRegister (const struct AFB_interface *interface);