aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-11-13 15:07:04 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-11-13 15:07:04 +0100
commit3a3ee2aa68333fce13fb2611b0165def47573c5d (patch)
tree40c03a7c7942dfd1dc3c7cd3043bd13730cc4d24
parentb6a483aab99a4bf32d7c04b159de7fcb96a54416 (diff)
afb-export: Ensure monitoring of events
Change-Id: Id82c624f695a229023447c16652bcc912b6d6fed Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-evt.h1
-rw-r--r--src/afb-export.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/afb-evt.h b/src/afb-evt.h
index 2d888fa1..901bfbb2 100644
--- a/src/afb-evt.h
+++ b/src/afb-evt.h
@@ -18,6 +18,7 @@
#pragma once
struct afb_event;
+struct afb_eventid;
struct afb_evtid;
struct afb_session;
struct json_object;
diff --git a/src/afb-export.c b/src/afb-export.c
index 3a898bbe..304395ae 100644
--- a/src/afb-export.c
+++ b/src/afb-export.c
@@ -179,7 +179,7 @@ static struct afb_eventid *eventid_make_cb(void *closure, const char *name)
static struct afb_event event_make_cb(void *closure, const char *name)
{
struct afb_eventid *eventid = eventid_make_cb(closure, name);
- return (struct afb_event){ .itf = eventid ? eventid->itf : NULL, .closure = eventid };
+ return afb_evt_event_from_evtid(afb_evt_eventid_to_evtid(eventid));
}
static int event_broadcast_cb(void *closure, const char *name, struct json_object *object)