Add synchronous subcalls
[src/app-framework-binder.git] / src / afb-subcall.h
index 7d29e1a..bf3d8cd 100644 (file)
@@ -28,7 +28,10 @@ extern void afb_subcall(
                void (*callback)(void*, int, struct json_object*),
                void *closure);
 
-extern void afb_subcall_internal_error(
-               void (*callback)(void*, int, struct json_object*),
-               void *closure);
+extern int afb_subcall_sync(
+               struct afb_xreq *caller,
+               const char *api,
+               const char *verb,
+               struct json_object *args,
+               struct json_object **result);