diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-09-22 15:22:54 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-10-09 14:08:33 +0200 |
commit | 9a304ebddac4deb4992ea931ea1131b639798b3b (patch) | |
tree | caeb35ad83653e6f4e8a9beef24440c0ba4f2871 /src/afb-api-so.c | |
parent | 59cd34b59853f6a47e756d7ab5bc0329f40a471c (diff) |
Allow pure dynamic bindings
Activates the new internal interfaces
Change-Id: I8f51cd271f66a0216ffdf03626300bb5964a70f9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-so.c')
-rw-r--r-- | src/afb-api-so.c | 10 |
1 files changed, 10 insertions, 0 deletions
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) { |