summaryrefslogtreecommitdiff
path: root/qpid/cpp/include
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2013-11-25 18:47:16 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2013-11-25 18:47:16 +0000
commit8f4c7e637f1baa622289ee36e0bda3792b0ee17d (patch)
tree8ddb7374f3bfc0caf680c89e98117e1fd1962abb /qpid/cpp/include
parentba1949c68adb1291cc8065cae65091167ac589b6 (diff)
downloadqpid-python-8f4c7e637f1baa622289ee36e0bda3792b0ee17d.tar.gz
QPID-5369: Issue compile-time error if deprecated QMF Agent or Console API used by applications
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1545368 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
-rw-r--r--qpid/cpp/include/qmf/Agent.h5
-rw-r--r--qpid/cpp/include/qmf/AgentEvent.h5
-rw-r--r--qpid/cpp/include/qmf/AgentSession.h5
-rw-r--r--qpid/cpp/include/qmf/ConsoleEvent.h5
-rw-r--r--qpid/cpp/include/qmf/ConsoleSession.h5
-rw-r--r--qpid/cpp/include/qmf/Data.h5
-rw-r--r--qpid/cpp/include/qmf/DataAddr.h5
-rw-r--r--qpid/cpp/include/qmf/Handle.h5
-rw-r--r--qpid/cpp/include/qmf/Query.h5
-rw-r--r--qpid/cpp/include/qmf/Schema.h5
-rw-r--r--qpid/cpp/include/qmf/SchemaId.h5
-rw-r--r--qpid/cpp/include/qmf/SchemaMethod.h5
-rw-r--r--qpid/cpp/include/qmf/SchemaProperty.h5
-rw-r--r--qpid/cpp/include/qmf/SchemaTypes.h5
-rw-r--r--qpid/cpp/include/qmf/Subscription.h5
-rw-r--r--qpid/cpp/include/qmf/exceptions.h5
-rw-r--r--qpid/cpp/include/qmf/posix/EventNotifier.h5
-rw-r--r--qpid/cpp/include/qmf/qmf2.i1
18 files changed, 86 insertions, 0 deletions
diff --git a/qpid/cpp/include/qmf/Agent.h b/qpid/cpp/include/qmf/Agent.h
index 94083be4f3..457b1495de 100644
--- a/qpid/cpp/include/qmf/Agent.h
+++ b/qpid/cpp/include/qmf/Agent.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include <qmf/ImportExport.h>
#include "qmf/Handle.h"
//#include "qmf/Subscription.h"
diff --git a/qpid/cpp/include/qmf/AgentEvent.h b/qpid/cpp/include/qmf/AgentEvent.h
index 0f93a9bb0a..b3f4bfaa9b 100644
--- a/qpid/cpp/include/qmf/AgentEvent.h
+++ b/qpid/cpp/include/qmf/AgentEvent.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include <qmf/ImportExport.h>
#include "qmf/Handle.h"
#include "qpid/types/Variant.h"
diff --git a/qpid/cpp/include/qmf/AgentSession.h b/qpid/cpp/include/qmf/AgentSession.h
index 589d364bcc..25778f0198 100644
--- a/qpid/cpp/include/qmf/AgentSession.h
+++ b/qpid/cpp/include/qmf/AgentSession.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include <qmf/ImportExport.h>
#include "qmf/Handle.h"
#include "qpid/messaging/Duration.h"
diff --git a/qpid/cpp/include/qmf/ConsoleEvent.h b/qpid/cpp/include/qmf/ConsoleEvent.h
index 94600f9357..1419b45de0 100644
--- a/qpid/cpp/include/qmf/ConsoleEvent.h
+++ b/qpid/cpp/include/qmf/ConsoleEvent.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include <qmf/ImportExport.h>
#include "qmf/Handle.h"
#include "qmf/Agent.h"
diff --git a/qpid/cpp/include/qmf/ConsoleSession.h b/qpid/cpp/include/qmf/ConsoleSession.h
index 022485cfa7..8d34032b1f 100644
--- a/qpid/cpp/include/qmf/ConsoleSession.h
+++ b/qpid/cpp/include/qmf/ConsoleSession.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include <qmf/ImportExport.h>
#include "qmf/Handle.h"
#include "qmf/Agent.h"
diff --git a/qpid/cpp/include/qmf/Data.h b/qpid/cpp/include/qmf/Data.h
index 487a02fe95..5067c3432a 100644
--- a/qpid/cpp/include/qmf/Data.h
+++ b/qpid/cpp/include/qmf/Data.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include <qmf/ImportExport.h>
#include "qmf/Handle.h"
#include "qmf/exceptions.h"
diff --git a/qpid/cpp/include/qmf/DataAddr.h b/qpid/cpp/include/qmf/DataAddr.h
index 20c469081e..7964f1cd02 100644
--- a/qpid/cpp/include/qmf/DataAddr.h
+++ b/qpid/cpp/include/qmf/DataAddr.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include <qmf/ImportExport.h>
#include "qmf/Handle.h"
#include "qpid/types/Variant.h"
diff --git a/qpid/cpp/include/qmf/Handle.h b/qpid/cpp/include/qmf/Handle.h
index 50971ea626..b0715a2145 100644
--- a/qpid/cpp/include/qmf/Handle.h
+++ b/qpid/cpp/include/qmf/Handle.h
@@ -22,6 +22,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include "qmf/ImportExport.h"
namespace qmf {
diff --git a/qpid/cpp/include/qmf/Query.h b/qpid/cpp/include/qmf/Query.h
index c1264f8901..dbd28c12de 100644
--- a/qpid/cpp/include/qmf/Query.h
+++ b/qpid/cpp/include/qmf/Query.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include <qmf/ImportExport.h>
#include "qmf/Handle.h"
#include "qpid/types/Variant.h"
diff --git a/qpid/cpp/include/qmf/Schema.h b/qpid/cpp/include/qmf/Schema.h
index 6cfd2e2a56..836eb271bd 100644
--- a/qpid/cpp/include/qmf/Schema.h
+++ b/qpid/cpp/include/qmf/Schema.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include <qmf/ImportExport.h>
#include "qpid/sys/IntegerTypes.h"
#include "qmf/Handle.h"
diff --git a/qpid/cpp/include/qmf/SchemaId.h b/qpid/cpp/include/qmf/SchemaId.h
index 2dafc1c091..7d074c93de 100644
--- a/qpid/cpp/include/qmf/SchemaId.h
+++ b/qpid/cpp/include/qmf/SchemaId.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include <qmf/ImportExport.h>
#include "qmf/Handle.h"
#include "qpid/types/Uuid.h"
diff --git a/qpid/cpp/include/qmf/SchemaMethod.h b/qpid/cpp/include/qmf/SchemaMethod.h
index b5944dc29e..66b2be2300 100644
--- a/qpid/cpp/include/qmf/SchemaMethod.h
+++ b/qpid/cpp/include/qmf/SchemaMethod.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include "qmf/ImportExport.h"
#include "qpid/sys/IntegerTypes.h"
#include "qmf/Handle.h"
diff --git a/qpid/cpp/include/qmf/SchemaProperty.h b/qpid/cpp/include/qmf/SchemaProperty.h
index bbb603fa50..cb2dec8d2c 100644
--- a/qpid/cpp/include/qmf/SchemaProperty.h
+++ b/qpid/cpp/include/qmf/SchemaProperty.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include <qmf/ImportExport.h>
#include "qmf/Handle.h"
#include "qpid/types/Uuid.h"
diff --git a/qpid/cpp/include/qmf/SchemaTypes.h b/qpid/cpp/include/qmf/SchemaTypes.h
index af3da612e5..b44d32a157 100644
--- a/qpid/cpp/include/qmf/SchemaTypes.h
+++ b/qpid/cpp/include/qmf/SchemaTypes.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
namespace qmf {
const int SCHEMA_TYPE_DATA = 1;
diff --git a/qpid/cpp/include/qmf/Subscription.h b/qpid/cpp/include/qmf/Subscription.h
index 398a45b922..adda2a75ab 100644
--- a/qpid/cpp/include/qmf/Subscription.h
+++ b/qpid/cpp/include/qmf/Subscription.h
@@ -21,6 +21,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include <qmf/ImportExport.h>
#include "qmf/Handle.h"
#include "qpid/types/Variant.h"
diff --git a/qpid/cpp/include/qmf/exceptions.h b/qpid/cpp/include/qmf/exceptions.h
index c7ffa68ce2..1a2e5dd2e8 100644
--- a/qpid/cpp/include/qmf/exceptions.h
+++ b/qpid/cpp/include/qmf/exceptions.h
@@ -22,6 +22,11 @@
*
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include "qmf/ImportExport.h"
#include "qpid/types/Exception.h"
#include "qpid/types/Variant.h"
diff --git a/qpid/cpp/include/qmf/posix/EventNotifier.h b/qpid/cpp/include/qmf/posix/EventNotifier.h
index c8b90b6421..c95a95dddf 100644
--- a/qpid/cpp/include/qmf/posix/EventNotifier.h
+++ b/qpid/cpp/include/qmf/posix/EventNotifier.h
@@ -20,6 +20,11 @@
* under the License.
*/
+#if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
+# error "The API defined in this file has been DEPRECATED and will be removed in the future."
+# error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
+#endif
+
#include <qmf/ImportExport.h>
#include "qmf/Handle.h"
#include "qmf/AgentSession.h"
diff --git a/qpid/cpp/include/qmf/qmf2.i b/qpid/cpp/include/qmf/qmf2.i
index 0f573fe3e6..7c54197f6d 100644
--- a/qpid/cpp/include/qmf/qmf2.i
+++ b/qpid/cpp/include/qmf/qmf2.i
@@ -19,6 +19,7 @@
%{
+#define QMF_USE_DEPRECATED_API
#include <qmf/exceptions.h>
#include <qmf/AgentEvent.h>
#include <qmf/Agent.h>