diff options
author | George Hazan <george.hazan@gmail.com> | 2013-12-29 19:55:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-12-29 19:55:04 +0000 |
commit | 7e0c7c426f9c8a453deef09c3d6679824af5f3d5 (patch) | |
tree | 6e247cf898b38c430cf1924242177e91a02226a5 /plugins/Db3x_mmap/src/dbintf.cpp | |
parent | 5dbf04acc4094bdf762bbadb71b7ab6024e09dd5 (diff) |
preparing mmap_sa, that it finally compatible with new mmap
git-svn-id: http://svn.miranda-ng.org/main/trunk@7415 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/dbintf.cpp')
-rw-r--r-- | plugins/Db3x_mmap/src/dbintf.cpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/plugins/Db3x_mmap/src/dbintf.cpp b/plugins/Db3x_mmap/src/dbintf.cpp index 5ca465d5ee..f5f1b3738b 100644 --- a/plugins/Db3x_mmap/src/dbintf.cpp +++ b/plugins/Db3x_mmap/src/dbintf.cpp @@ -128,7 +128,6 @@ int CDb3Base::Load(bool bSkipInit) if (!bSkipInit) {
if (InitCache()) return 1;
if (InitModuleNames()) return 1;
- if (InitCrypt()) return 1;
m_bReadOnly = false;
@@ -157,9 +156,31 @@ STDMETHODIMP_(void) CDb3Base::SetCacheSafetyMode(BOOL bIsSet) DBFlush(1);
}
+void CDb3Base::EncodeCopyMemory(void *dst, void *src, size_t size)
+{
+ MoveMemory(dst, src, size);
+}
+
+void CDb3Base::DecodeCopyMemory(void *dst, void *src, size_t size)
+{
+ MoveMemory(dst, src, size);
+}
+
+void CDb3Base::EncodeDBWrite(DWORD ofs, void *src, int size)
+{
+ DBWrite(ofs, src, size);
+}
+
+void CDb3Base::DecodeDBWrite(DWORD ofs, void *src, int size)
+{
+ DBWrite(ofs, src, size);
+}
+
///////////////////////////////////////////////////////////////////////////////
// MIDatabaseChecker
+typedef int (CDb3Base::*CheckWorker)(int);
+
static CheckWorker Workers[6] =
{
&CDb3Base::WorkInitialChecks,
|