X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fafb-evt.h;h=2d888fa18c5c18355c4b0da30c1dd82a0ba0d7b1;hb=f11c11123f8cc43fc6e810b6c3dd911eb697826e;hp=823f8fd0e3036e13342eb43442b861ae84fd7e45;hpb=bb73f5b6fb216b4badb94767558e83e60cf08fd0;p=src%2Fapp-framework-binder.git diff --git a/src/afb-evt.h b/src/afb-evt.h index 823f8fd0..2d888fa1 100644 --- a/src/afb-evt.h +++ b/src/afb-evt.h @@ -64,15 +64,19 @@ extern int afb_evt_watch_sub_evtid(struct afb_evt_listener *listener, struct afb extern void afb_evt_update_hooks(); -extern struct afb_event afb_evt_create_event(const char *fullname); -extern const char *afb_evt_event_fullname(struct afb_event event); -extern int afb_evt_event_id(struct afb_event event); +extern struct afb_eventid *afb_evt_eventid_create(const char *fullname); +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_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_eventid_push(struct afb_eventid *eventid, struct json_object *object); +extern int afb_evt_eventid_unhooked_push(struct afb_eventid *eventid, 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); +extern int afb_evt_eventid_add_watch(struct afb_evt_listener *listener, struct afb_eventid *eventid); +extern int afb_evt_eventid_remove_watch(struct afb_evt_listener *listener, struct afb_eventid *eventid); + +extern struct afb_evtid *afb_evt_eventid_to_evtid(struct afb_eventid *eventid); +extern struct afb_eventid *afb_evt_eventid_from_evtid(struct afb_evtid *evtid); +extern struct afb_event afb_evt_event_from_evtid(struct afb_evtid *evtid); -extern struct afb_evtid *afb_evt_to_evtid(struct afb_event event); -extern struct afb_event afb_evt_from_evtid(struct afb_evtid *evtid);