X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-subcall.h;h=bf3d8cd166e14ffe803f9c38ecb02a3958a4de8f;hb=5d248158cc380d0a164fa56b46a7bdede4115407;hp=e39d8bdd8490412297d4cc170903646706839a8f;hpb=b6b049eac4035c2ef581205af8eccce93f5727b3;p=src%2Fapp-framework-binder.git diff --git a/src/afb-subcall.h b/src/afb-subcall.h index e39d8bdd..bf3d8cd1 100644 --- a/src/afb-subcall.h +++ b/src/afb-subcall.h @@ -17,20 +17,21 @@ #pragma once -struct afb_context; -struct afb_req; +struct afb_xreq; struct json_object; extern void afb_subcall( - struct afb_context *context, + struct afb_xreq *caller, const char *api, const char *verb, struct json_object *args, - void (*callback)(void*, int, struct json_object*), - void *closure, - struct afb_req req); - -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); +