summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/sys/Shlib.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2011-07-28 18:28:56 +0000
committerAlan Conway <aconway@apache.org>2011-07-28 18:28:56 +0000
commit95ad2adfc443b227eba224279188c36906c1db66 (patch)
tree14c91400e2284b2c4f782d203a60d44dbee31f9e /qpid/cpp/src/qpid/sys/Shlib.h
parent8db25489a2971803b21d73814521b40731111bd5 (diff)
downloadqpid-python-95ad2adfc443b227eba224279188c36906c1db66.tar.gz
Merge branch 'visibility-hidden' into qpid-3163qpid-3163
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-3163@1151956 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/sys/Shlib.h')
-rw-r--r--qpid/cpp/src/qpid/sys/Shlib.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/qpid/cpp/src/qpid/sys/Shlib.h b/qpid/cpp/src/qpid/sys/Shlib.h
index 7f66cfec14..11690121a8 100644
--- a/qpid/cpp/src/qpid/sys/Shlib.h
+++ b/qpid/cpp/src/qpid/sys/Shlib.h
@@ -10,9 +10,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -22,7 +22,7 @@
*
*/
-#include "qpid/CommonImportExport.h"
+#include "qpid/CommonImportExport.h"
#include <boost/noncopyable.hpp>
#include <iostream>
@@ -32,7 +32,7 @@ namespace sys {
/** Encapsulates a shared library handle.
*@see AutoShlib
*/
-class Shlib {
+class QPID_COMMON_CLASS_EXTERN Shlib {
public:
/** Load a shared library */
Shlib(const char* libname) { load(libname); }
@@ -55,14 +55,14 @@ class Shlib {
return reinterpret_cast<T>(reinterpret_cast<intptr_t>(
this->getSymbol(symbol)));
}
-
+
private:
void* handle;
QPID_COMMON_EXTERN void load(const char* libname);
};
/** A shared library handle that unloads the shlib in it's dtor */
-class AutoShlib : public Shlib {
+class QPID_COMMON_CLASS_EXTERN AutoShlib : public Shlib {
public:
/** Load shared library */
AutoShlib(const std::string& libname) : Shlib(libname) {}
@@ -70,7 +70,7 @@ class AutoShlib : public Shlib {
QPID_COMMON_EXTERN ~AutoShlib() throw();
};
-
+
}} // namespace qpid::sys
#endif /*!QPID_SYS_SHLIB_H*/