summaryrefslogtreecommitdiff
path: root/storage/connect/maputil.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-01-18 19:21:44 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-01-18 19:21:44 +0400
commitd7143a4160d093abecf911de4084d5dd3aa3be92 (patch)
tree4492cb6ec957a6decf98da85482c88fbe9b18465 /storage/connect/maputil.h
parent055b62f404ee0a0463ee8ff98a0e24c083b95f1d (diff)
downloadmariadb-git-d7143a4160d093abecf911de4084d5dd3aa3be92.tar.gz
Adding the CONNECT storage engine sources.
Diffstat (limited to 'storage/connect/maputil.h')
-rw-r--r--storage/connect/maputil.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/storage/connect/maputil.h b/storage/connect/maputil.h
new file mode 100644
index 00000000000..4fbba23c23a
--- /dev/null
+++ b/storage/connect/maputil.h
@@ -0,0 +1,22 @@
+#ifndef __MAPUTIL_H__
+#define __MAPUTIL_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct {
+ void *memory;
+ DWORD lenL;
+ DWORD lenH;
+ } MEMMAP;
+
+HANDLE CreateFileMap(PGLOBAL, LPCSTR, MEMMAP *, MODE, bool);
+bool CloseMemMap(void *memory, size_t dwSize);
+my_bool CloseFileHandle(HANDLE h);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __MAPUTIL_H__ */