aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-evt.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-22 17:07:51 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-09 14:08:33 +0200
commit1430e5aca4864a093534a0c91f056a97a4a26056 (patch)
treec3ad95024bfd78bad09e5ef8443c41bf204a90c7 /src/afb-evt.c
parent7682c2aacb3efd6abed3dee43f8a03d7646d8153 (diff)
Add function afb_evt_eventid_addref
Change-Id: I737f3ceaa41b5ec9a200a615dbc29965ed11c17c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-evt.c')
-rw-r--r--src/afb-evt.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/afb-evt.c b/src/afb-evt.c
index 18f4bca6..9937c1a6 100644
--- a/src/afb-evt.c
+++ b/src/afb-evt.c
@@ -738,3 +738,12 @@ void afb_evt_eventid_unref(struct afb_eventid *eventid)
if (evtid)
afb_evt_evtid_unref(evtid);
}
+
+struct afb_eventid *afb_evt_eventid_addref(struct afb_eventid *eventid)
+{
+ struct afb_evtid *evtid = afb_evt_eventid_to_evtid(eventid);
+ if (evtid)
+ afb_evt_evtid_addref(evtid);
+ return eventid;
+}
+