From 007b4c7301f0d26a72f89f74e9929f42e24eb3e6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 5 Apr 2013 22:27:16 +0000 Subject: - rest of menus cleared; - old database macroses wiped out from all plugins (left in m_database.h for compatibility) git-svn-id: http://svn.miranda-ng.org/main/trunk@4324 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/db.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'protocols/FacebookRM/src/db.h') diff --git a/protocols/FacebookRM/src/db.h b/protocols/FacebookRM/src/db.h index 25d3356574..f7a3a560f3 100644 --- a/protocols/FacebookRM/src/db.h +++ b/protocols/FacebookRM/src/db.h @@ -23,19 +23,19 @@ along with this program. If not, see . #pragma once // DB macros -#define getByte( setting, error ) DBGetContactSettingByte( NULL, m_szModuleName, setting, error ) -#define setByte( setting, value ) DBWriteContactSettingByte( NULL, m_szModuleName, setting, value ) -#define getWord( setting, error ) DBGetContactSettingWord( NULL, m_szModuleName, setting, error ) -#define setWord( setting, value ) DBWriteContactSettingWord( NULL, m_szModuleName, setting, value ) -#define getDword( setting, error ) DBGetContactSettingDword( NULL, m_szModuleName, setting, error ) -#define setDword( setting, value ) DBWriteContactSettingDword( NULL, m_szModuleName, setting, value ) -#define getString( setting, dest ) DBGetContactSettingString( NULL, m_szModuleName, setting, dest ) -#define setString( setting, value ) DBWriteContactSettingString( NULL, m_szModuleName, setting, value ) -#define getTString( setting, dest ) DBGetContactSettingTString( NULL, m_szModuleName, setting, dest ) -#define setTString( setting, value ) DBWriteContactSettingTString( NULL, m_szModuleName, setting, value ) +#define getByte( setting, error ) db_get_b( NULL, m_szModuleName, setting, error ) +#define setByte( setting, value ) db_set_b( NULL, m_szModuleName, setting, value ) +#define getWord( setting, error ) db_get_w( NULL, m_szModuleName, setting, error ) +#define setWord( setting, value ) db_set_w( NULL, m_szModuleName, setting, value ) +#define getDword( setting, error ) db_get_dw( NULL, m_szModuleName, setting, error ) +#define setDword( setting, value ) db_set_dw( NULL, m_szModuleName, setting, value ) +#define getString( setting, dest ) db_get_s( NULL, m_szModuleName, setting, dest ) +#define setString( setting, value ) db_set_s( NULL, m_szModuleName, setting, value ) +#define getTString( setting, dest ) db_get_ts( NULL, m_szModuleName, setting, dest ) +#define setTString( setting, value ) db_set_ts( NULL, m_szModuleName, setting, value ) #define getU8String( setting, dest ) DBGetContactSettingUTF8String( NULL, m_szModuleName, setting, dest ) #define setU8String( setting, value ) DBWriteContactSettingUTF8String( NULL, m_szModuleName, setting, value ) -#define deleteSetting( setting ) DBDeleteContactSetting( NULL, m_szModuleName, setting ) +#define deleteSetting( setting ) db_unset( NULL, m_szModuleName, setting ) // DB keys #define FACEBOOK_KEY_LOGIN "Email" -- cgit v1.2.3