aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2018-07-03 16:41:29 +0200
committerThierry Bultel <thierry.bultel@iot.bzh>2018-07-03 18:18:57 +0200
commit2c1edf4183b8b19e335f83ea0664e17a97ac9918 (patch)
tree6a79774caa6cc4e1740331bbb8e6884809ffc360
parent5811a53c29db2ee703b9eb5b6b303287a65f3f04 (diff)
No longer sets the API versionsandbox/tbultel/4a_master
The API version must now be set in top config.cmake Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
-rw-r--r--filescan-utils.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/filescan-utils.h b/filescan-utils.h
index 906d92c..674afb6 100644
--- a/filescan-utils.h
+++ b/filescan-utils.h
@@ -26,16 +26,10 @@
extern "C" {
#endif
-// hack waiting for official V3 API
+#include <afb/afb-binding.h>
+
#ifdef USE_API_DYN
- #define AFB_BINDING_VERSION 0
- #define AFB_BINDING_WANT_DYNAPI
- #include <afb/afb-binding.h>
extern afb_dynapi *AFB_default;
- #define AFB_DEBUG(...) AFB_DYNAPI_DEBUG(AFB_default, __VA_ARGS__)
-#else
- #define AFB_BINDING_VERSION 2
- #include <afb/afb-binding.h>
#endif
#include <json-c/json.h>