X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-subcall.h;h=082b02c8abd2066d7860c8b6963839e89479a5c4;hb=a86967decc0ff9b139f412fffccc7914e27a80a9;hp=0de51daeaf50d07101c686b54af19e8d4f94f07e;hpb=0a8f8f784646254d9b71e928e930003f82d89603;p=src%2Fapp-framework-binder.git diff --git a/src/afb-subcall.h b/src/afb-subcall.h index 0de51dae..082b02c8 100644 --- a/src/afb-subcall.h +++ b/src/afb-subcall.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 "IoT.bzh" + * Copyright (C) 2016, 2017 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,11 +17,14 @@ #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_internal_error(void (*callback)(void*, int, struct json_object*), void *closure); +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);