From 05ccb4dcd0b507fb000426667ed3f25c0b93db2b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 23 Jun 2013 11:37:58 +0000 Subject: db_set_resident - helper for MIDataBase::SetSettingResident git-svn-id: http://svn.miranda-ng.org/main/trunk@5093 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/delphi/m_core.inc | 2 ++ include/m_core.h | 22 ++++++++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/delphi/m_core.inc b/include/delphi/m_core.inc index c7f7dc6428..82acc44c5a 100644 --- a/include/delphi/m_core.inc +++ b/include/delphi/m_core.inc @@ -126,6 +126,8 @@ function db_event_prev(hDbEvent:THANDLE):THANDLE; stdcall; function db_free(dbv:PDBVARIANT):int_ptr; stdcall; external CoreDLL name 'db_free'; +function db_set_resident(const szModule:pAnsiChar; const szSetting:pAnsiChar; bEnable:int):int; stdcall; + external CoreDLL name 'db_set_resident'; function db_unset(hContact:THANDLE; const szModule:pAnsiChar; const szSetting:pAnsiChar):int_ptr; stdcall; external CoreDLL name 'db_unset'; diff --git a/include/m_core.h b/include/m_core.h index 1cb48af582..2b81f6e9bd 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -110,11 +110,11 @@ MIR_CORE_DLL(INT_PTR) db_free(DBVARIANT *dbv); MIR_CORE_DLL(INT_PTR) db_unset(HANDLE hContact, const char *szModule, const char *szSetting); #if defined(__cplusplus) -MIR_CORE_DLL(HANDLE) db_find_first(const char *szProto = NULL); -MIR_CORE_DLL(HANDLE) db_find_next(HANDLE hContact, const char *szProto = NULL); + MIR_CORE_DLL(HANDLE) db_find_first(const char *szProto = NULL); + MIR_CORE_DLL(HANDLE) db_find_next(HANDLE hContact, const char *szProto = NULL); #else -MIR_CORE_DLL(HANDLE) db_find_first(const char *szProto); -MIR_CORE_DLL(HANDLE) db_find_next(HANDLE hContact, const char *szProto); + MIR_CORE_DLL(HANDLE) db_find_first(const char *szProto); + MIR_CORE_DLL(HANDLE) db_find_next(HANDLE hContact, const char *szProto); #endif MIR_CORE_DLL(HANDLE) db_event_add(HANDLE hContact, DBEVENTINFO *dbei); @@ -138,9 +138,9 @@ MIR_CORE_DLL(char*) db_get_sa(HANDLE hContact, const char *szModule, const cha MIR_CORE_DLL(WCHAR*) db_get_wsa(HANDLE hContact, const char *szModule, const char *szSetting); #if defined(__cplusplus) -MIR_CORE_DLL(INT_PTR) db_get_s(HANDLE hContact, const char *szModule, const char *szSetting, DBVARIANT *dbv, const int nType=DBVT_ASCIIZ); + MIR_CORE_DLL(INT_PTR) db_get_s(HANDLE hContact, const char *szModule, const char *szSetting, DBVARIANT *dbv, const int nType=DBVT_ASCIIZ); #else -MIR_CORE_DLL(INT_PTR) db_get_s(HANDLE hContact, const char *szModule, const char *szSetting, DBVARIANT *dbv, const int nType); + MIR_CORE_DLL(INT_PTR) db_get_s(HANDLE hContact, const char *szModule, const char *szSetting, DBVARIANT *dbv, const int nType); #endif MIR_CORE_DLL(INT_PTR) db_set_b(HANDLE hContact, const char *szModule, const char *szSetting, BYTE val); @@ -151,6 +151,12 @@ MIR_CORE_DLL(INT_PTR) db_set_ws(HANDLE hContact, const char *szModule, const cha MIR_CORE_DLL(INT_PTR) db_set_utf(HANDLE hContact, const char *szModule, const char *szSetting, const char *val); MIR_CORE_DLL(INT_PTR) db_set_blob(HANDLE hContact, const char *szModule, const char *szSetting, void *val, unsigned len); +#if defined(__cplusplus) + MIR_CORE_DLL(BOOL) db_set_resident(const char *szModule, const char *szService, BOOL bEnable=TRUE); +#else + MIR_CORE_DLL(BOOL) db_set_resident(const char *szModule, const char *szService, BOOL bEnable); +#endif + #define db_get_ws(a,b,c,d) db_get_s(a,b,c,d,DBVT_WCHAR) #define db_get_utf(a,b,c,d) db_get_s(a,b,c,d,DBVT_UTF8) @@ -581,9 +587,9 @@ typedef unsigned (__stdcall *pThreadFuncEx)(void*); typedef unsigned (__cdecl *pThreadFuncOwner)(void *owner, void* param); #if defined( __cplusplus ) -MIR_CORE_DLL(INT_PTR) Thread_Push(HINSTANCE hInst, void* pOwner=NULL); + MIR_CORE_DLL(INT_PTR) Thread_Push(HINSTANCE hInst, void* pOwner=NULL); #else -MIR_CORE_DLL(INT_PTR) Thread_Push(HINSTANCE hInst, void* pOwner); + MIR_CORE_DLL(INT_PTR) Thread_Push(HINSTANCE hInst, void* pOwner); #endif MIR_CORE_DLL(INT_PTR) Thread_Pop(void); MIR_CORE_DLL(void) Thread_Wait(void); -- cgit v1.2.3