diff options
author | 2019-01-04 15:31:02 +0100 | |
---|---|---|
committer | 2019-01-04 16:54:52 +0100 | |
commit | 3b802b24b073fcbb331a8a78f99dc2b8e1fde0a2 (patch) | |
tree | 5046a3d1360eff326bf90f3d18c76d3fcb0d1e00 /include/afb/c++ | |
parent | 5d7c5d44c4a709016ddc0946c9e36412d8c5af29 (diff) |
Fix a template that use the wrong callback definition
It used the legacy callback definition instead of the good one.
Change-Id: I5ad6e881e9fb99f1076a6dfa9ded221ccfec4a03
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'include/afb/c++')
-rw-r--r-- | include/afb/c++/binding-wrap.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/afb/c++/binding-wrap.hpp b/include/afb/c++/binding-wrap.hpp index d7707df7..733c02a7 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 <class T> 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<void(*)(void*,int,json_object*,afb_api_t)>(callback), reinterpret_cast<void*>(closure)); + afb_service_call(api, verb, args, reinterpret_cast<void(*)(void*,json_object*,const char*, const char*,afb_api_t)>(callback), reinterpret_cast<void*>(closure)); } inline bool callsync(const char *api, const char *verb, struct json_object *args, struct json_object *&result, char *&error, char *&info) |