aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-evt.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-07-31 16:27:03 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-07-31 16:27:03 +0200
commitfbe9349a747aba8d7c8c27e51cdd8c3c5ef8b39c (patch)
tree4b363dba9b46f476ef49b8aae941bc649f5265ab /src/afb-evt.h
parent11adca199df161b22b7fa387808e987e45e0b2c7 (diff)
afb-evt: add internal push functions
For the implementation of monitoring, the event should be pushed without hooking internal. Change-Id: I4372bbc55e78c851db660a69bb2e60995fbdc88f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-evt.h')
-rw-r--r--src/afb-evt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/afb-evt.h b/src/afb-evt.h
index 2c8da613..9071b32a 100644
--- a/src/afb-evt.h
+++ b/src/afb-evt.h
@@ -41,6 +41,9 @@ extern struct afb_event afb_evt_create_event(const char *name);
extern const char *afb_evt_event_name(struct afb_event event);
extern int afb_evt_event_id(struct afb_event event);
+extern int afb_evt_push(struct afb_event event, struct json_object *object);
+extern int afb_evt_unhooked_push(struct afb_event event, struct json_object *object);
+
extern int afb_evt_add_watch(struct afb_evt_listener *listener, struct afb_event event);
extern int afb_evt_remove_watch(struct afb_evt_listener *listener, struct afb_event event);