-extern struct afb_evt_listener *afb_evt_listener_create(void (*send)(void *closure, const char *event, struct json_object *object), void *closure);
+struct afb_evt_itf
+{
+ void (*push)(void *closure, const char *event, int eventid, struct json_object *object);
+ void (*broadcast)(void *closure, const char *event, int eventid, struct json_object *object);
+ void (*add)(void *closure, const char *event, int eventid);
+ void (*remove)(void *closure, const char *event, int eventid);
+};
+
+extern struct afb_evt_listener *afb_evt_listener_create(const struct afb_evt_itf *itf, void *closure);