summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-04-09 22:41:07 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-04-09 22:41:07 +0000
commitefb01def0c8af535e34db922ee90ae18541ceae4 (patch)
tree0f4e2043e8d2733b79f2ea1efa4c9cb028c2831a /cpp
parent8053a209d6946a453e1cebc62a09e06f3bcb8387 (diff)
downloadqpid-python-efb01def0c8af535e34db922ee90ae18541ceae4.tar.gz
Small fixes to get recent management changes to compile under Visual Studio/Windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@932641 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/include/qpid/management/Mutex.h9
-rw-r--r--cpp/src/qpid/management/Buffer.cpp5
2 files changed, 9 insertions, 5 deletions
diff --git a/cpp/include/qpid/management/Mutex.h b/cpp/include/qpid/management/Mutex.h
index ec1ff35402..67ae04bae9 100644
--- a/cpp/include/qpid/management/Mutex.h
+++ b/cpp/include/qpid/management/Mutex.h
@@ -19,6 +19,7 @@
*
*/
+#include "qpid/CommonImportExport.h"
namespace qpid {
namespace sys {
@@ -52,10 +53,10 @@ namespace qpid {
typedef ScopedLockTemplate<Mutex> ScopedLock;
typedef ScopedUnlockTemplate<Mutex> ScopedUnlock;
- Mutex();
- ~Mutex();
- void lock();
- void unlock();
+ QPID_COMMON_EXTERN Mutex();
+ QPID_COMMON_EXTERN ~Mutex();
+ QPID_COMMON_EXTERN void lock();
+ QPID_COMMON_EXTERN void unlock();
private:
sys::Mutex* impl;
};
diff --git a/cpp/src/qpid/management/Buffer.cpp b/cpp/src/qpid/management/Buffer.cpp
index 17facd37bb..cab9c4aa85 100644
--- a/cpp/src/qpid/management/Buffer.cpp
+++ b/cpp/src/qpid/management/Buffer.cpp
@@ -23,7 +23,9 @@
#include "qpid/amqp_0_10/Codecs.h"
using namespace std;
-using namespace qpid::management;
+
+namespace qpid {
+namespace management {
Buffer::Buffer(char* data, uint32_t size) : impl(new framing::Buffer(data, size)) {}
Buffer::~Buffer() { delete impl; }
@@ -101,3 +103,4 @@ void Buffer::getList(types::Variant::List& list)
amqp_0_10::ListCodec::decode(encoded, list);
}
+}} \ No newline at end of file