summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-04-30 18:44:20 +0000
committerGordon Sim <gsim@apache.org>2013-04-30 18:44:20 +0000
commitbb99e3e013f46392e1a359ecee8ff515c869ba59 (patch)
treee56f0cbaad9cee70ec0f39494a7945b06ec1fa99
parent1e366486eeb71c8f34823d9f55a6fce6305573c4 (diff)
downloadqpid-python-bb99e3e013f46392e1a359ecee8ff515c869ba59.tar.gz
QPID-4339: add export symbol directives
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477771 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/src/qpid/sys/MemoryMappedFile.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/qpid/cpp/src/qpid/sys/MemoryMappedFile.h b/qpid/cpp/src/qpid/sys/MemoryMappedFile.h
index 6166422695..84548a5f6f 100644
--- a/qpid/cpp/src/qpid/sys/MemoryMappedFile.h
+++ b/qpid/cpp/src/qpid/sys/MemoryMappedFile.h
@@ -21,6 +21,7 @@
* under the License.
*
*/
+#include "qpid/CommonImportExport.h"
#include <string>
namespace qpid {
@@ -32,37 +33,37 @@ class MemoryMappedFilePrivate;
*/
class MemoryMappedFile {
public:
- MemoryMappedFile();
- ~MemoryMappedFile();
+ QPID_COMMON_EXTERN MemoryMappedFile();
+ QPID_COMMON_EXTERN ~MemoryMappedFile();
/**
* Opens a file that can be mapped by region into memory
*/
- std::string open(const std::string& name, const std::string& directory);
+ QPID_COMMON_EXTERN std::string open(const std::string& name, const std::string& directory);
/**
* Returns the page size
*/
- size_t getPageSize();
+ QPID_COMMON_EXTERN size_t getPageSize();
/**
* Load a portion of the file into memory
*/
- char* map(size_t offset, size_t size);
+ QPID_COMMON_EXTERN char* map(size_t offset, size_t size);
/**
* Evict a portion of the file from memory
*/
- void unmap(char* region, size_t size);
+ QPID_COMMON_EXTERN void unmap(char* region, size_t size);
/**
* Flush any changes to a previously mapped region of the file
* back to disk
*/
- void flush(char* region, size_t size);
+ QPID_COMMON_EXTERN void flush(char* region, size_t size);
/**
* Expand the capacity of the file
*/
- void expand(size_t offset);
+ QPID_COMMON_EXTERN void expand(size_t offset);
/**
* Returns true if memory mapping is supported, false otherwise
*/
- static bool isSupported();
+ QPID_COMMON_EXTERN static bool isSupported();
private:
MemoryMappedFilePrivate* state;