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