summaryrefslogtreecommitdiffstats
path: root/src/afb-api-so-v2.c
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2019-02-18 14:31:25 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2019-04-02 09:58:49 +0200
commitec0564bc90b3c63f7e82f09e81db8bd2cfac89a2 (patch)
treeb61f04cc61fb45af20dd594c4eab2f0ae623fc01 /src/afb-api-so-v2.c
parent2ba7c200c6c4844b63f8f707a6f04017661f16ca (diff)
Add conditionnal support of bindings version 2
Bindings version 2 will become legacy soon. This patch allows their removal Change-Id: Iecad3abd0ddd714e5d55c0b935be756a29d1ca37 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-so-v2.c')
-rw-r--r--src/afb-api-so-v2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/afb-api-so-v2.c b/src/afb-api-so-v2.c
index 71d51c04..a0399da1 100644
--- a/src/afb-api-so-v2.c
+++ b/src/afb-api-so-v2.c
@@ -15,6 +15,8 @@
* limitations under the License.
*/
+#if WITH_LEGACY_BINDING_V2
+
#define _GNU_SOURCE
#include <stdlib.h>
@@ -221,3 +223,4 @@ int afb_api_so_v2_add(const char *path, void *handle, struct afb_apiset *declare
return -1;
}
+#endif