X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api-so.c;h=2a0f9d6e4dad308d10466f3759c538b297323cc5;hb=0033c7c16a48819447b3a5273ebb2be99be74352;hp=3588e16386ded9dc70dd9e6e352685841be66083;hpb=cbde33f87ba335a078933dfe822e12024b29316c;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api-so.c b/src/afb-api-so.c index 3588e163..2a0f9d6e 100644 --- a/src/afb-api-so.c +++ b/src/afb-api-so.c @@ -27,6 +27,7 @@ #include "afb-api-so.h" #include "afb-api-so-v1.h" #include "afb-api-so-v2.h" +#include "afb-api-so-vdyn.h" #include "verbose.h" #include "sig-monitor.h" @@ -83,6 +84,15 @@ static int load_binding(const char *path, int force, struct afb_apiset *apiset) if (rc) return 0; /* yes version 2 */ + /* try the version dyn */ + rc = afb_api_so_vdyn_add(path, handle, apiset); + if (rc < 0) { + /* error when loading a valid dyn binding */ + goto error2; + } + if (rc) + return 0; /* yes version dyn */ + /* try the version 1 */ rc = afb_api_so_v1_add(path, handle, apiset); if (rc < 0) {