diff options
author | 2019-02-18 14:31:25 +0100 | |
---|---|---|
committer | 2019-03-22 12:21:54 +0100 | |
commit | 5cbc5e1c37fba83ba2577aad9b66de2c7587e63f (patch) | |
tree | 197800d56e4923e823c9b928cf09bf7f1af8e52c /src/afb-api-so-v2.c | |
parent | 66ec7ca3dc2bc4c9c51c45c8b306f42519abcb00 (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.c | 3 |
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 |