summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-09-27 11:49:36 +0000
committerRobert Pösel <robyer@seznam.cz>2013-09-27 11:49:36 +0000
commit93803b014deca7d3cd450b4536cb0baa310f612b (patch)
tree4a896182495f8c3602eee98880fab83ffaaa1b6d /protocols/FacebookRM/src/proto.h
parentc8eca678b7dbde203e2f778cabd590c846391411 (diff)
Facebook: new getStringUtf and setStringUtf helpers
git-svn-id: http://svn.miranda-ng.org/main/trunk@6249 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.h')
-rw-r--r--protocols/FacebookRM/src/proto.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/proto.h b/protocols/FacebookRM/src/proto.h
index 8105d921a7..65aa316ee5 100644
--- a/protocols/FacebookRM/src/proto.h
+++ b/protocols/FacebookRM/src/proto.h
@@ -50,6 +50,16 @@ public:
return (m_iStatus == ID_STATUS_INVISIBLE);
}
+ // DB utils missing in proto_interface
+
+ __forceinline INT_PTR getStringUtf(const char *name, DBVARIANT *result) {
+ return db_get_utf(NULL, m_szModuleName, name, result); }
+ __forceinline INT_PTR getStringUtf(HANDLE hContact, const char *name, DBVARIANT *result) {
+ return db_get_utf(hContact, m_szModuleName, name, result); }
+
+ __forceinline void setStringUtf(const char *name, const char* value) { db_set_utf(NULL, m_szModuleName, name, value); }
+ __forceinline void setStringUtf(HANDLE hContact, const char *name, const char* value) { db_set_utf(hContact, m_szModuleName, name, value); }
+
//PROTO_INTERFACE
virtual HANDLE __cdecl AddToList(int flags, PROTOSEARCHRESULT* psr);