aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-api-so.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-03-30 19:02:06 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-03-30 19:02:06 +0200
commitc9ba2ce49808a19a4ef982280a46256797b830ae (patch)
tree8e62a2bd8276a80642c2b2a5e2f52d6961fdc3de /src/afb-api-so.c
parentc710a0da4ebcc126275c42a0387ff85b2557e3ae (diff)
Start to implement the bindings V2
More work has to be done for merging common code. Change-Id: I72b01901f978854843967c12bfcb3cc59cc10310 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-so.c')
-rw-r--r--src/afb-api-so.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/afb-api-so.c b/src/afb-api-so.c
index d673d0eb..4908ba85 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 "verbose.h"
int afb_api_so_timeout = 15;
@@ -53,9 +54,14 @@ static int load_binding(const char *path, int force)
}
/* retrieves the register function */
+ rc = afb_api_so_v2_add(path, handle);
+ if (rc < 0) {
+ /* error when loading a valid v2 binding */
+ goto error2;
+ }
rc = afb_api_so_v1_add(path, handle);
if (rc < 0) {
- /* error when loading a valid v& binding */
+ /* error when loading a valid v1 binding */
goto error2;
}
if (rc == 0) {