X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api-dyn.c;h=0667f5191827cb4a9530a06da779f4109fa01037;hb=45088e9f96c9889089d7b0eca810d89a2b3d7374;hp=e829f8be00595bc2ce69e600e8cd1efe3a23626a;hpb=f30be1ca9ce04cfab55b9e6ce25cec6952f7e21d;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api-dyn.c b/src/afb-api-dyn.c index e829f8be..0667f519 100644 --- a/src/afb-api-dyn.c +++ b/src/afb-api-dyn.c @@ -123,7 +123,7 @@ static void call_cb(void *closure, struct afb_xreq *xreq) int i; const char *name; - name = xreq->verb; + name = xreq->request.verb; xreq->request.dynapi = (void*)dynapi->export; /* hack: this avoids to export afb_export structure */ /* look first in dyna mic verbs */ @@ -274,7 +274,7 @@ int afb_api_dyn_add(struct afb_apiset *apiset, const char *name, const char *inf goto error; } INFO("binding %s added to set %s", afb_export_apiname(dynapi->export), afb_apiset_name(apiset)); - return 1; + return 0; error: afb_export_destroy(export);