X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api-so-v2.c;h=6aa10cf523de4bd339eebc22f6e4702febe51891;hb=66451a0d658eabab18f37995659d81d429e0138e;hp=e0769213382f9a6d8de17351bb53dd37dc10c25c;hpb=bd4f365ba69281941c14b2c02d58f4b37a22b42d;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api-so-v2.c b/src/afb-api-so-v2.c index e0769213..6aa10cf5 100644 --- a/src/afb-api-so-v2.c +++ b/src/afb-api-so-v2.c @@ -119,7 +119,7 @@ static int service_start_cb(void *closure, int share_session, int onneed, struct } /* get the initialisation */ - start = desc->binding->start; + start = desc->binding->init; if (start == NULL) { /* not an error when onneed */ if (onneed != 0) @@ -211,11 +211,11 @@ int afb_api_so_v2_add_binding(const struct afb_binding_v2 *binding, void *handle afb_ditf_init_v2(&desc->ditf, binding->api); /* init the binding */ - if (binding->init) { - INFO("binding %s calling init function", binding->api); - rc = binding->init(desc->ditf.daemon); + if (binding->preinit) { + INFO("binding %s calling preinit function", binding->api); + rc = binding->preinit(desc->ditf.daemon); if (rc < 0) { - ERROR("binding %s initialisation function failed...", binding->api); + ERROR("binding %s preinit function failed...", binding->api); goto error2; } }