X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api-so-v2.c;h=ba53223f2cf9deca79339f9614ecbca199b170d4;hb=a0bcdbcab352e311f320ded7af2205eec632296a;hp=fef6eb20dc91210cb5683df4fa91aca7a521ae49;hpb=89190b853409c3d0465232da6dd11e4c0a0b73d7;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api-so-v2.c b/src/afb-api-so-v2.c index fef6eb20..ba53223f 100644 --- a/src/afb-api-so-v2.c +++ b/src/afb-api-so-v2.c @@ -67,7 +67,8 @@ static void call_cb(void *closure, struct afb_xreq *xreq) struct api_so_v2 *desc = closure; const struct afb_verb_v2 *verb; - verb = search(desc, xreq->verb); + xreq->request.dynapi = (void*)desc->export; /* hack: this avoids to export afb_export structure */ + verb = search(desc, xreq->request.verb); afb_xreq_call_verb_v2(xreq, verb); } @@ -168,7 +169,7 @@ int afb_api_so_v2_add_binding(const struct afb_binding_v2 *binding, void *handle assert(data); /* allocates the description */ - export = afb_export_create_v2(binding->api, data, binding->init, binding->onevent); + export = afb_export_create_v2(apiset, binding->api, data, binding->init, binding->onevent); desc = calloc(1, sizeof *desc); if (!desc || !export) { ERROR("out of memory");