X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api-so-v1.c;h=9a9e47a4b9829c74c6c3b49cca46e10dd29c51a7;hb=refs%2Ftags%2Feel%2F5.0.0;hp=c69f29450a8a22fe1741af047539193c71e7fd11;hpb=f2e72e1858d0be1a9cf3c0c4263f0bd81570d0e8;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api-so-v1.c b/src/afb-api-so-v1.c index c69f2945..9a9e47a4 100644 --- a/src/afb-api-so-v1.c +++ b/src/afb-api-so-v1.c @@ -67,7 +67,8 @@ static void call_cb(void *closure, struct afb_xreq *xreq) const struct afb_verb_desc_v1 *verb; struct api_so_v1 *desc = closure; - 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_v1(xreq, verb); } @@ -212,7 +213,7 @@ int afb_api_so_v1_add(const char *path, void *handle, struct afb_apiset *apiset) /* allocates the description */ init = dlsym(handle, afb_api_so_v1_service_init); onevent = dlsym(handle, afb_api_so_v1_service_event); - export = afb_export_create_v1(path, init, onevent); + export = afb_export_create_v1(apiset, path, init, onevent); desc = calloc(1, sizeof *desc); if (desc == NULL || export == NULL) { ERROR("out of memory");