+
+#pragma once
+
+struct json_object;
+
+struct afb_context
+{
+ void *context;
+ void (*free_context)(void*);
+};
+
+extern void *afb_context_get(struct afb_context *actx);
+extern void afb_context_set(struct afb_context *actx, void *context, void (*free_context)(void*));
+
+struct afb_event_listener_itf
+{
+ void (*send)(void *closure, const char *event, struct json_object *object);
+};
+
+struct afb_event_listener
+{
+ const struct afb_event_listener_itf *itf;
+ void *closure;
+};
+
+struct afb_event_listener_list;