diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-05-04 16:21:18 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-05-04 16:34:04 +0200 |
commit | 4be084408c6d3d7b7f90a2493829c8ce0cebb397 (patch) | |
tree | 55e15ee647417a2be87a6f98d474b3b1fddb886c /src/afb-api-so-v1.c | |
parent | 8a5d14c58817b7ee03f8e22ba734fdd8cc2bc780 (diff) |
Prepare bindings version 2
Change-Id: Ic9e417d9a36f5da08883c3ded127d8350ff893cc
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-so-v1.c')
-rw-r--r-- | src/afb-api-so-v1.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/afb-api-so-v1.c b/src/afb-api-so-v1.c index eedfc010..739d2557 100644 --- a/src/afb-api-so-v1.c +++ b/src/afb-api-so-v1.c @@ -16,7 +16,7 @@ */ #define _GNU_SOURCE -#define NO_BINDING_VERBOSE_MACRO +#define AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO #include <string.h> #include <dlfcn.h> @@ -27,6 +27,7 @@ #include <afb/afb-binding.h> #include "afb-api.h" +#include "afb-api-so-v1.h" #include "afb-apiset.h" #include "afb-svc.h" #include "afb-evt.h" @@ -105,7 +106,7 @@ static int service_start_cb(void *closure, int share_session, int onneed, struct /* get the event handler if any */ onevent = dlsym(desc->handle, afb_api_so_v1_service_event); - desc->service = afb_svc_create(apiset, share_session, init, onevent); + desc->service = afb_svc_create_v1(apiset, share_session, init, onevent); if (desc->service == NULL) { /* starting error */ ERROR("Starting service %s failed", desc->binding->v1.prefix); @@ -204,7 +205,7 @@ int afb_api_so_v1_add(const char *path, void *handle, struct afb_apiset *apiset) desc->handle = handle; /* init the interface */ - afb_ditf_init(&desc->ditf, path); + afb_ditf_init_v1(&desc->ditf, path); /* init the binding */ NOTICE("binding [%s] calling registering function %s", path, afb_api_so_v1_register); |