X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-evt.h;h=9071b32a96ce6f4f0b5e5449a40780d84f8ad1e9;hb=3e56dc3fc7ce31cb932fbd86e78eea02049d0b7e;hp=bd765b8c3c1ada56add249b387831159db5c8276;hpb=a38382e89710db2c298f7f101e3ba0cf3681287c;p=src%2Fapp-framework-binder.git diff --git a/src/afb-evt.h b/src/afb-evt.h index bd765b8c..9071b32a 100644 --- a/src/afb-evt.h +++ b/src/afb-evt.h @@ -18,8 +18,8 @@ #pragma once struct afb_event; -struct AFB_clientCtx; - +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();