X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fafb-export.c;h=ea783b8b92357ae9d7a7f2fa7dce1a9782f3c102;hb=2b8dadf32dbb1a412bfb89830aa67f02264b58eb;hp=ce48dbe0577e7f3556cc061613d026652b17d620;hpb=4a6490b96d8ac2da6a19b4f251c005ff1b1e7d61;p=src%2Fapp-framework-binder.git diff --git a/src/afb-export.c b/src/afb-export.c index ce48dbe0..ea783b8b 100644 --- a/src/afb-export.c +++ b/src/afb-export.c @@ -173,7 +173,7 @@ static struct afb_eventid *eventid_make_cb(void *closure, const char *name) memcpy(event + plen + 1, name, nlen + 1); /* create the event */ - return afb_evt_create_event(event); + return afb_evt_eventid_create(event); } static struct afb_event event_make_cb(void *closure, const char *name) @@ -255,11 +255,12 @@ static int api_new_api_cb( void *closure, const char *api, const char *info, + int noconcurrency, int (*preinit)(void*, struct afb_dynapi *), void *preinit_closure) { struct afb_export *export = closure; - return afb_api_dyn_add(export->apiset, api, info, preinit, preinit_closure); + return afb_api_dyn_add(export->apiset, api, info, noconcurrency, preinit, preinit_closure); } /********************************************** @@ -376,11 +377,12 @@ static int hooked_api_new_api_cb( void *closure, const char *api, const char *info, + int noconcurrency, int (*preinit)(void*, struct afb_dynapi *), void *preinit_closure) { /* TODO */ - return api_new_api_cb(closure, api, info, preinit, preinit_closure); + return api_new_api_cb(closure, api, info, noconcurrency, preinit, preinit_closure); } /********************************************** * vectors @@ -568,10 +570,10 @@ static struct call_req *callreq_create( callreq->xreq.context.validated = 1; copy = (char*)&callreq[1]; memcpy(copy, api, lenapi); - callreq->xreq.api = copy; + callreq->xreq.request.api = copy; copy = ©[lenapi]; memcpy(copy, verb, lenverb); - callreq->xreq.verb = copy; + callreq->xreq.request.verb = copy; callreq->xreq.listener = export->listener; callreq->xreq.json = args; callreq->export = export;