summaryrefslogtreecommitdiff
path: root/include/newpluginapi.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-17 16:24:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-19 19:24:16 +0300
commitc6cdc2d0bf10bd27364fae9d816f499aa08607bc (patch)
tree402840c1d6e4d2c28c2ab8b77839d6835d06f002 /include/newpluginapi.h
parentc1b2166e6abf0d89217c684358b9d5b815e0df19 (diff)
db_get_utfa supported in PROTO_INTERFACE & CMPlugin
Diffstat (limited to 'include/newpluginapi.h')
-rw-r--r--include/newpluginapi.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/newpluginapi.h b/include/newpluginapi.h
index dccefbe944..d7c0370dd2 100644
--- a/include/newpluginapi.h
+++ b/include/newpluginapi.h
@@ -274,6 +274,15 @@ public:
return db_get_s(hContact, m_szModuleName, name, result);
}
+ __forceinline INT_PTR getUString(const char *name, DBVARIANT *result)
+ {
+ return db_get_utf(0, m_szModuleName, name, result);
+ }
+ __forceinline INT_PTR getUString(MCONTACT hContact, const char *name, DBVARIANT *result)
+ {
+ return db_get_utf(hContact, m_szModuleName, name, result);
+ }
+
__forceinline INT_PTR getWString(const char *name, DBVARIANT *result)
{
return db_get_ws(0, m_szModuleName, name, result);
@@ -301,6 +310,15 @@ public:
return db_get_sa(hContact, m_szModuleName, name);
}
+ __forceinline char* getUStringA(const char *name)
+ {
+ return db_get_utfa(0, m_szModuleName, name);
+ }
+ __forceinline char* getUStringA(MCONTACT hContact, const char *name)
+ {
+ return db_get_utfa(hContact, m_szModuleName, name);
+ }
+
__forceinline wchar_t* getWStringA(const char *name)
{
return db_get_wsa(0, m_szModuleName, name);
@@ -355,6 +373,15 @@ public:
db_set_s(hContact, m_szModuleName, name, value);
}
+ __forceinline void setUString(const char *name, const char* value)
+ {
+ db_set_utf(0, m_szModuleName, name, value);
+ }
+ __forceinline void setUString(MCONTACT hContact, const char *name, const char* value)
+ {
+ db_set_utf(hContact, m_szModuleName, name, value);
+ }
+
__forceinline void setWString(const char *name, const wchar_t* value)
{
db_set_ws(0, m_szModuleName, name, value);