summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/modern_commonheaders.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-28 21:28:50 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-28 21:28:50 +0000
commit190968e9803a32bd4e609176989564735098146c (patch)
treea3ab28871ffd27d84f401ebd9e4f79423c1823e8 /plugins/Clist_modern/modern_commonheaders.cpp
parent46c66c9252010602ba3194956e7710946066879b (diff)
database stubs moved to mir_core
git-svn-id: http://svn.miranda-ng.org/main/trunk@676 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/modern_commonheaders.cpp')
-rw-r--r--plugins/Clist_modern/modern_commonheaders.cpp107
1 files changed, 0 insertions, 107 deletions
diff --git a/plugins/Clist_modern/modern_commonheaders.cpp b/plugins/Clist_modern/modern_commonheaders.cpp
index 4cf9009138..4b4fe7f9be 100644
--- a/plugins/Clist_modern/modern_commonheaders.cpp
+++ b/plugins/Clist_modern/modern_commonheaders.cpp
@@ -1,113 +1,6 @@
#define DB_USEHELPERFUNCTIONS
#include "hdr/modern_commonheaders.h"
-int __cdecl ModernGetSettingByte_Helper(HANDLE hContact, const char *szModule, const char *szSetting, int errorValue, const char *szFile, const int nLine)
-{
- #if defined( _DEBUG )
- return DBGetContactSettingByte_Helper( hContact, szModule, szSetting, errorValue, szFile, nLine );
- #else
- return DBGetContactSettingByte_Helper( hContact, szModule, szSetting, errorValue );
- #endif
-}
-
-int __cdecl ModernGetSettingWord_Helper(HANDLE hContact, const char *szModule, const char *szSetting, int errorValue, const char *szFile, const int nLine)
-{
- #if defined( _DEBUG )
- return DBGetContactSettingWord_Helper( hContact, szModule, szSetting, errorValue, szFile, nLine );
- #else
- return DBGetContactSettingWord_Helper( hContact, szModule, szSetting, errorValue );
- #endif
-}
-
-int __cdecl ModernGetSettingDword_Helper(HANDLE hContact, const char *szModule, const char *szSetting, int errorValue, const char *szFile, const int nLine)
-{
- #if defined( _DEBUG )
- return DBGetContactSettingDword_Helper( hContact, szModule, szSetting, errorValue, szFile, nLine );
- #else
- return DBGetContactSettingDword_Helper( hContact, szModule, szSetting, errorValue );
- #endif
-}
-
-int __cdecl ModernGetSettingString_Helper(HANDLE hContact,const char *szModule, const char *szSetting,DBVARIANT *dbv, const char *szFile, const int nLine, const int nType)
-{
- #if defined( _DEBUG )
- return DBGetContactSettingString_Helper( hContact, szModule, szSetting, dbv, szFile, nLine, nType );
- #else
- return DBGetContactSettingString_Helper( hContact, szModule, szSetting, dbv, nType );
- #endif
-}
-
-int __cdecl ModernGetSetting_Helper(HANDLE hContact,const char *szModule,const char *szSetting,DBVARIANT *dbv, const char *szFile, const int nLine)
-{
- #if defined( _DEBUG )
- return DBGetContactSetting_Helper(hContact, szModule, szSetting, dbv, szFile, nLine);
- #else
- return DBGetContactSetting_Helper(hContact, szModule, szSetting, dbv);
- #endif
-}
-
-int __cdecl ModernWriteSettingByte(HANDLE hContact,const char *szModule,const char *szSetting,BYTE val)
-{
- return DBWriteContactSettingByte( hContact, szModule, szSetting, val);
-}
-
-int __cdecl ModernWriteSettingWord(HANDLE hContact,const char *szModule,const char *szSetting,WORD val)
-{
- return DBWriteContactSettingWord( hContact, szModule, szSetting, val);
-}
-
-int __cdecl ModernWriteSettingDword(HANDLE hContact,const char *szModule,const char *szSetting,DWORD val)
-{
- return DBWriteContactSettingDword( hContact, szModule, szSetting, val);
-}
-
-int __cdecl ModernWriteSettingString(HANDLE hContact,const char *szModule,const char *szSetting,const char *val)
-{
- return DBWriteContactSettingString( hContact, szModule, szSetting, val );
-}
-
-int __cdecl ModernWriteSettingWString(HANDLE hContact,const char *szModule,const char *szSetting,const WCHAR *val)
-{
- return DBWriteContactSettingWString( hContact, szModule, szSetting, val );
-}
-
-int __cdecl ModernDBFreeVariant(DBVARIANT *dbv)
-{
- return DBFreeVariant( dbv );
-}
-
-int __cdecl ModernDeleteSetting(HANDLE hContact,const char *szModule,const char *szSetting)
-{
- return DBDeleteContactSetting( hContact, szModule, szSetting );
-}
-
-char* __cdecl ModernGetStringA( HANDLE hContact, const char *szModule, const char *szSetting )
-{
- char *str=NULL;
- DBVARIANT dbv={0};
- ModernGetSettingString(hContact,szModule,szSetting,&dbv);
- if(dbv.type==DBVT_ASCIIZ)
- str=mir_strdup(dbv.pszVal);
- ModernDBFreeVariant(&dbv);
- return str;
-}
-
-wchar_t* __cdecl ModernGetStringW( HANDLE hContact, const char *szModule, const char *szSetting )
-{
- wchar_t *str=NULL;
- DBVARIANT dbv={0};
- DBGetContactSettingWString(hContact,szModule,szSetting,&dbv);
- if(dbv.type==DBVT_WCHAR)
- str=mir_wstrdup(dbv.pwszVal);
- DBFreeVariant(&dbv);
- return str;
-}
-
-WORD __cdecl ModernGetSettingRangedWord(HANDLE hContact, const char *szModule, const char *szSetting, WORD errorValue, WORD minValue, WORD maxValue)
-{
- return DBGetContactSettingRangedWord( hContact, szModule, szSetting, errorValue, minValue, maxValue);
-}
-
BYTE gl_TrimText=1;
char * __cdecl strstri( char *a, const char *b)