From: Loïc Collignon Date: Fri, 4 Jan 2019 14:31:02 +0000 (+0100) Subject: c++: Fix a wrong callback version X-Git-Tag: 7.99.1~44 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=e9a9f95aab36dd73037024e5450d2ecd6da959af c++: Fix a wrong callback version It used the legacy callback definition of apiv2 instead of the apiv3 one. Change-Id: Iab281131a923ae59cfbbb50cf72fd4a5c3f11d65 Signed-off-by: Loïc Collignon --- diff --git a/include/afb/c++/binding-wrap.hpp b/include/afb/c++/binding-wrap.hpp index f6f427b3..0a5a5e25 100644 --- a/include/afb/c++/binding-wrap.hpp +++ b/include/afb/c++/binding-wrap.hpp @@ -460,7 +460,7 @@ inline void call(const char *api, const char *verb, struct json_object *args, vo template inline void call(const char *api, const char *verb, struct json_object *args, void (*callback)(T*closure, struct json_object *result, const char *error, const char *info, afb_api_t api), T *closure) { - afb_service_call(api, verb, args, reinterpret_cast(callback), reinterpret_cast(closure)); + afb_service_call(api, verb, args, reinterpret_cast(callback), reinterpret_cast(closure)); } inline bool callsync(const char *api, const char *verb, struct json_object *args, struct json_object *&result, char *&error, char *&info)