diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-20 15:56:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-20 15:56:25 +0000 |
commit | bfe1bd0fc087be44c70904aee0fe4276643d206d (patch) | |
tree | d5376d7cab1f6e5084a1449dc341c325b6cee45c /src/mir_core | |
parent | 8593e7594773c30b35488bb6a45fcc782ed5df0c (diff) |
- db3x_mmap is completely moved to a class;
- the old nightmare in the core "How to detect a db plugin and load it" is eliminated forever;
- databases are the usual plugins now (loadable via Load)
- dynamic DATABASELINK registration
git-svn-id: http://svn.miranda-ng.org/main/trunk@1082 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/db.cpp | 2 | ||||
-rw-r--r-- | src/mir_core/lists.cpp | 6 | ||||
-rw-r--r-- | src/mir_core/mir_core.def | 3 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/mir_core/db.cpp b/src/mir_core/db.cpp index f18f288d33..f9a1ba1118 100644 --- a/src/mir_core/db.cpp +++ b/src/mir_core/db.cpp @@ -227,7 +227,7 @@ MIR_CORE_DLL(INT_PTR) db_set_blob(HANDLE hContact, const char *szModule, const c return currDb->WriteContactSetting(hContact, &cws);
}
-MIR_CORE_DLL(void) db_setCurrent(MIDatabase* _db)
+extern "C" MIR_CORE_DLL(void) db_setCurrent(MIDatabase* _db)
{
currDb = _db;
}
diff --git a/src/mir_core/lists.cpp b/src/mir_core/lists.cpp index e4996fc156..bcd2ad040c 100644 --- a/src/mir_core/lists.cpp +++ b/src/mir_core/lists.cpp @@ -65,14 +65,12 @@ MIR_CORE_DLL(void*) List_Find(SortedList* p_list, void* p_value) MIR_CORE_DLL(int) List_GetIndex(SortedList* p_list, void* p_value, int* p_index)
{
- if (p_value == NULL)
- {
+ if (p_value == NULL) {
*p_index = -1;
return 0;
}
- switch ((INT_PTR)p_list->sortFunc)
- {
+ switch ((INT_PTR)p_list->sortFunc) {
case 0:
break;
diff --git a/src/mir_core/mir_core.def b/src/mir_core/mir_core.def index 2939f2feda..4d231dbc70 100644 --- a/src/mir_core/mir_core.def +++ b/src/mir_core/mir_core.def @@ -125,4 +125,5 @@ db_set_ws @122 UnloadCoreModule @123
Thread_SetName @124
replaceStr @125
-replaceStrW @126
\ No newline at end of file +replaceStrW @126
+db_setCurrent @127
\ No newline at end of file |