afb-evt: Add event creation with prefix
[src/app-framework-binder.git] / src / afb-evt.h
index a6bfda1..76152a8 100644 (file)
@@ -18,6 +18,7 @@
 #pragma once
 
 struct afb_event;
+struct afb_eventid;
 struct afb_evtid;
 struct afb_session;
 struct json_object;
@@ -39,6 +40,7 @@ extern struct afb_evt_listener *afb_evt_listener_addref(struct afb_evt_listener
 extern void afb_evt_listener_unref(struct afb_evt_listener *listener);
 
 extern struct afb_evtid *afb_evt_evtid_create(const char *fullname);
+extern struct afb_evtid *afb_evt_evtid_create2(const char *prefix, const char *name);
 
 extern struct afb_evtid *afb_evt_evtid_addref(struct afb_evtid *evtid);
 extern struct afb_evtid *afb_evt_evtid_hooked_addref(struct afb_evtid *evtid);
@@ -65,8 +67,10 @@ extern void afb_evt_update_hooks();
 
 
 extern struct afb_eventid *afb_evt_eventid_create(const char *fullname);
+extern struct afb_eventid *afb_evt_eventid_create2(const char *prefix, const char *name);
 extern const char *afb_evt_eventid_fullname(struct afb_eventid *eventid);
 extern int afb_evt_eventid_id(struct afb_eventid *eventid);
+extern struct afb_eventid *afb_evt_eventid_addref(struct afb_eventid *eventid);
 extern void afb_evt_eventid_unref(struct afb_eventid *eventid);
 
 extern int afb_evt_eventid_push(struct afb_eventid *eventid, struct json_object *object);