aboutsummaryrefslogtreecommitdiffstats
path: root/include/afb/afb-request.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/afb/afb-request.h')
-rw-r--r--include/afb/afb-request.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/afb/afb-request.h b/include/afb/afb-request.h
index acfb7ea1..26b2ef11 100644
--- a/include/afb/afb-request.h
+++ b/include/afb/afb-request.h
@@ -274,9 +274,9 @@ static inline int afb_request_unsubscribe(struct afb_request *request, struct af
* - 'afb_request_subcall_req' that is convenient to keep request alive automatically.
* - 'afb_request_subcall_sync' the synchronous version
*/
-static inline void afb_request_subcall(struct afb_request *request, const char *api, const char *verb, struct json_object *args, void (*callback)(void *closure, int iserror, struct json_object *result), void *closure)
+static inline void afb_request_subcall(struct afb_request *request, const char *api, const char *verb, struct json_object *args, void (*callback)(void *closure, int iserror, struct json_object *result, struct afb_request *request), void *closure)
{
- request->itf->subcall(request, api, verb, args, callback, closure);
+ request->itf->subcall_request(request, api, verb, args, callback, closure);
}
/*