-struct afb_service_itf
-{
- void (*call)(void *closure, const char *api, const char *verb, struct json_object *args, void (*callback)(void*, int, struct json_object*), void *callback_closure);
-};
-
-struct afb_service
-{
- const struct afb_service_itf *itf;
- void *closure;
-};
-
-extern int pluginAfbV1ServiceInit(struct afb_service service);
-
-extern void pluginAfbV1ServiceEvent(const char *event, struct json_object *object);
-
-static inline void afb_service_call(struct afb_service service, const char *api, const char *verb, struct json_object *args, void (*callback)(void*, int, struct json_object*), void *callback_closure)
-{
- service.itf->call(service.closure, api, verb, args, callback, callback_closure);
-}