summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbintfm.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-23 21:15:40 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-23 21:15:40 +0000
commit75115d35a7477110938f056a18edbbd43ac9a840 (patch)
treecfa7e4e8e532300542cd7ab86685aa14e4945018 /plugins/Db3x_mmap/src/dbintfm.cpp
parent4352098913e5f363baafcd3bfd2aa1afce9a3052 (diff)
db3x, finally
git-svn-id: http://svn.miranda-ng.org/main/trunk@1144 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/dbintfm.cpp')
-rw-r--r--plugins/Db3x_mmap/src/dbintfm.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/Db3x_mmap/src/dbintfm.cpp b/plugins/Db3x_mmap/src/dbintfm.cpp
index 654165e924..2f34f4e371 100644
--- a/plugins/Db3x_mmap/src/dbintfm.cpp
+++ b/plugins/Db3x_mmap/src/dbintfm.cpp
@@ -40,3 +40,17 @@ CDb3Mmap::~CDb3Mmap()
if (m_pNull)
free(m_pNull);
}
+
+DWORD CDb3Mmap::GetSettingsGroupOfsByModuleNameOfs(DBContact *dbc,DWORD ofsContact,DWORD ofsModuleName)
+{
+ DWORD ofsThis = dbc->ofsFirstSettings;
+ while (ofsThis) {
+ DBContactSettings *dbcs = (DBContactSettings*)DBRead(ofsThis,sizeof(DBContactSettings),NULL);
+ if (dbcs->signature != DBCONTACTSETTINGS_SIGNATURE) DatabaseCorruption(NULL);
+ if (dbcs->ofsModuleName == ofsModuleName)
+ return ofsThis;
+
+ ofsThis = dbcs->ofsNext;
+ }
+ return 0;
+}