genskel: Fix issues for C++ bindings v3 55/17155/1
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 10 Oct 2018 16:46:23 +0000 (18:46 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Wed, 10 Oct 2018 16:46:23 +0000 (18:46 +0200)
commitfd57dbf84b32f574ad55305487748eb2db182474
treed6c39f4ea6dfd75efb5f5f13268c60d19ae3880d
parent40fa7ea26a59f10d8036d89399f42a4e9d26a58a
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