summaryrefslogtreecommitdiffstats
path: root/include/afb
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-06-24 10:53:06 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-06-24 10:53:06 +0200
commit9afa63b69d2061884c8fdf8227cccd1796c34879 (patch)
treecbfd604e5e88831fa0e8d07cb6d3932345281894 /include/afb
parent7059e59cddc1c81321639875636e88895bc14309 (diff)
adds a warning about afb/afb-plugin.h for GCC
Change-Id: I72b62751fdbeaea3847312c62779fd0bd0ecb3ea Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include/afb')
-rw-r--r--include/afb/afb-plugin.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/afb/afb-plugin.h b/include/afb/afb-plugin.h
index 3a8a8f4f..58819f48 100644
--- a/include/afb/afb-plugin.h
+++ b/include/afb/afb-plugin.h
@@ -17,6 +17,10 @@
#pragma once
+#pragma GCC warning "\n\n This header file <afb/afb-plugin.h> is OBSOLETE.\n\
+ It is provided for COMPATIBILITY ONLY.\n\n\
+ Please USE <afb/afb-binding.h> and ADAPT YOUR CODE to new names.\n"
+
#if defined(NO_PLUGIN_VERBOSE_MACRO)
# define NO_BINDING_VERBOSE_MACRO
#endif
@@ -33,8 +37,7 @@
#define AFB_plugin afb_binding
#define AFB_interface afb_binding_interface
#define pluginAfbV1Register afbBindingV1Register
-
-
#define AFB_Mode afb_mode
#define AFB_session_v1 afb_session_v1
#define AFB_verb_desc_v1 afb_verb_desc_v1
+