X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-evt.h;h=76152a8baa9b26d472018c57edd0233f265ec0a0;hb=9e8fda2954d951ea819dbddfe5afe466b2306074;hp=ea0832990b0e040f5b04a72a6a3e1d9151848616;hpb=5928e8fc14c2edabc0bc104fff7542819e06d45a;p=src%2Fapp-framework-binder.git diff --git a/src/afb-evt.h b/src/afb-evt.h index ea083299..76152a8b 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; @@ -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); @@ -64,18 +66,20 @@ extern int afb_evt_watch_sub_evtid(struct afb_evt_listener *listener, struct afb extern void afb_evt_update_hooks(); -extern struct afb_eventid *afb_evt_create_event(const char *fullname); -extern const char *afb_evt_event_fullname(struct afb_eventid *eventid); -extern int afb_evt_event_id(struct afb_eventid *eventid); -extern void afb_evt_event_unref(struct afb_eventid *eventid); +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_push(struct afb_eventid *eventid, struct json_object *object); -extern int afb_evt_unhooked_push(struct afb_eventid *eventid, 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_eventid *eventid); -extern int afb_evt_remove_watch(struct afb_evt_listener *listener, struct afb_eventid *eventid); +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_to_evtid(struct afb_eventid *eventid); -extern struct afb_eventid *afb_evt_from_evtid(struct afb_evtid *evtid); -extern struct afb_event afb_event_from_evtid(struct afb_evtid *evtid); +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);