diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-08-11 18:47:10 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-08-11 18:47:10 +0000 |
commit | 9f7023fdefc4bbdc888c8bb208bc79bbaa8df225 (patch) | |
tree | 30a29895f906c96f62349e17adf17a58ae004ff4 /protocols/Tox/src/tox_proto.h | |
parent | f1e6c9b63fc90e6fbbcfcef52912ad0fda768302 (diff) |
Tox: added friend list loading
git-svn-id: http://svn.miranda-ng.org/main/trunk@10157 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.h')
-rw-r--r-- | protocols/Tox/src/tox_proto.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 502928419b..220e07d0c0 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -104,8 +104,10 @@ private: // contacts
bool IsProtoContact(MCONTACT hContact);
- MCONTACT GetContactByUserId(const wchar_t *userId);
- MCONTACT AddContact(const wchar_t*userId, const wchar_t *nick, bool isHidden = false);
+ MCONTACT GetContactByUserId(const char *clientId);
+ MCONTACT AddContact(const char *clientId, const char *nick, bool isHidden = false);
+
+ void LoadContactList();
void __cdecl SearchByUidAsync(void* arg);
@@ -115,8 +117,9 @@ private: // utils
TOX_USERSTATUS MirandaToToxStatus(int status);
- uint8_t *HexStringToData(const char *hex_string);
- char *DataToHexString(const uint8_t *bin_string);
+
+ std::vector<uint8_t> HexStringToData(const std::string hex);
+ std::string DataToHexString(const std::vector<uint8_t>);
int LoadToxData(const char *path);
int SaveToxData(const char *path);
|