summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-05-18 12:31:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-05-18 12:31:56 +0000
commit504307b184517248795d3ae4301969bfa93a050a (patch)
treef3a9607ae039da405fc4ad597b96b7fc60122cfb /plugins/ExternalAPI
parent8d80538230c30daa2d8742e19421c49e90fdb13d (diff)
unused proprietary services removed from UserInfoEx
git-svn-id: http://svn.miranda-ng.org/main/trunk@16848 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r--plugins/ExternalAPI/m_userinfoex.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/plugins/ExternalAPI/m_userinfoex.h b/plugins/ExternalAPI/m_userinfoex.h
index eb681fb269..2957c62a6f 100644
--- a/plugins/ExternalAPI/m_userinfoex.h
+++ b/plugins/ExternalAPI/m_userinfoex.h
@@ -308,63 +308,5 @@ lParam=not used
*/
#define MS_USERINFO_HOMEPAGE_OPENURL "UserInfo/Homepage/OpenURL"
-/*************************************************************
- * extended database module
- */
-
-/* DB/Contact/GetSettingStrEx v0.7.0.1+
-This service function reads a database setting from USERINFO module.
-If the setting does not exist, it is looked up in 'pszProto'.
-If 'hContact' points to a MetaContact, the setting is recursivly
-searched in all sub contacts, too, starting with the default contact,
-if the MetaContact does not directly provide the setting.
-This service can directly replace the default MS_DB_CONTACT_GETSETTING_STR
-for reading contact information from the database.
-There will be no difference for the user but the possible source of information.
-
-This service can be used to retrieve all kinds of settings!
-Some versions of the default MS_DB_CONTACT_GETSETTING_STR service return
-an error for BYTE, WORD and DWORD values if cgs.pValue->type is not 0.
-
-wParam = (WPARAM)(HANDLE)hContact
-lParam = (LPARAM)(DBCONTACTGETSETTING*)&cgs
-
-This service returns one of the results of MS_DB_CONTACT_GETSETTING_STR!
-*/
-#define MS_DB_CONTACT_GETSETTING_STR_EX "DB/Contact/GetSettingStrEx"
-
-static FORCEINLINE INT_PTR
- DBGetContactSettingEx_Helper(
- MCONTACT hContact,
- const char* pszProto,
- const char* pszSetting,
- DBVARIANT *dbv,
- BYTE nType)
-{
- INT_PTR rc;
- DBCONTACTGETSETTING cgs;
-
- cgs.szModule = pszProto;
- cgs.szSetting = pszSetting;
- cgs.pValue = dbv;
- dbv->type = nType;
-
- rc = CallService(MS_DB_CONTACT_GETSETTING_STR_EX, (WPARAM)hContact, (LPARAM)&cgs);
- if (rc == CALLSERVICE_NOTFOUND)
- rc = db_get_s(hContact, pszProto, pszSetting, dbv, nType);
-
- return rc;
-}
-
-#define DBGetContactSettingStringEx(c,p,s,v) DBGetContactSettingEx_Helper(c,p,s,v,DBVT_ASCIIZ)
-#define DBGetContactSettingWStringEx(c,p,s,v) DBGetContactSettingEx_Helper(c,p,s,v,DBVT_WCHAR)
-#define DBGetContactSettingUTF8StringEx(c,p,s,v) DBGetContactSettingEx_Helper(c,p,s,v,DBVT_UTF8)
-
-#ifdef _UNICODE
-#define DBGetContactSettingTStringEx DBGetContactSettingWStringEx
-#else
-#define DBGetContactSettingTStringEx DBGetContactSettingStringEx
-#endif
-
/*************************************************************/
#endif /* _M_USERINFOEX_H_ */ \ No newline at end of file