X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-evt.h;h=9071b32a96ce6f4f0b5e5449a40780d84f8ad1e9;hb=170aef20bc3a59d5139c2eff8794d9ba4c83a2e5;hp=52b40ab1ac438103fc6a8a5007f24023ec8e7b25;hpb=a758d774aa5dacc07d2840f1b7ccef793863389f;p=src%2Fapp-framework-binder.git diff --git a/src/afb-evt.h b/src/afb-evt.h index 52b40ab1..9071b32a 100644 --- a/src/afb-evt.h +++ b/src/afb-evt.h @@ -19,7 +19,7 @@ struct afb_event; struct afb_session; - +struct json_object; struct afb_evt_listener; struct afb_evt_itf @@ -41,6 +41,10 @@ extern struct afb_event afb_evt_create_event(const char *name); extern const char *afb_evt_event_name(struct afb_event event); extern int afb_evt_event_id(struct afb_event event); +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_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 void afb_evt_update_hooks();