diff options
| author | Gordon Sim <gsim@apache.org> | 2013-04-30 18:44:20 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-04-30 18:44:20 +0000 |
| commit | e767429c8d95eb0fd457994d3c7c47d6d8f89f80 (patch) | |
| tree | dfb4e10243d75858d78c43000b02053d1b4cb2ba /cpp | |
| parent | 5dc9a4f9bf001b89791cb346b958017c9fd259ad (diff) | |
| download | qpid-python-e767429c8d95eb0fd457994d3c7c47d6d8f89f80.tar.gz | |
QPID-4339: add export symbol directives
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1477771 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/src/qpid/sys/MemoryMappedFile.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/cpp/src/qpid/sys/MemoryMappedFile.h b/cpp/src/qpid/sys/MemoryMappedFile.h index 6166422695..84548a5f6f 100644 --- a/cpp/src/qpid/sys/MemoryMappedFile.h +++ b/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; |
