genskel: Fix issues for C++ bindings v3 59/17659/1 6.0.2 flounder/6.0.2 flounder_6.0.2
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 10 Oct 2018 16:46:23 +0000 (18:46 +0200)
committerJose Bollo <jose.bollo@iot.bzh>
Mon, 5 Nov 2018 08:46:38 +0000 (09:46 +0100)
commite2a3e5b9336f8ede14fb4323d75d38a70b90af3f
treef4181855169b656b8860a64a12001cf9904af249
parentea8949c90812b40d699e9395ac0319ac8732b379
genskel: Fix issues for C++ bindings v3

The C++ compiler is too much strict. It doesn't accept
valid C because fields are in the wrong order or missing.

 - afb_verb_t generated structure invert vcbdata and session

 -  missing provide_class, require_class, require_api in the
    afb_binding_v3 generated struct

The signature of the declared function was wrong.

 -  wrong verb's callback signature void fun(afb_req) instead of
    void fun(afb_req_t)

This add the declaration of the (pre)initialization and onevent functions.

 -  missing init function signation generation, or probably preinit and
    onevent (not tested those ones)

Bug-AGL: SPEC-1806

Change-Id: I1abf8a29f831ecc80458edcd3bd094b2108dc227
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/devtools/genskel.c