diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-08-10 16:10:24 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-08-10 16:10:24 +0000 |
commit | 40ca3f169e61d1273d47ddcee277bbc5bcb6ffdf (patch) | |
tree | b9065bc63cd527321ff41b91f1ca457716b63384 /protocols/Tox/src/tox_proto.h | |
parent | b3a63d4e727b8552f8cf2b321cc68d2631ef3179 (diff) |
Tox: first approach to saving and restoring data
git-svn-id: http://svn.miranda-ng.org/main/trunk@10145 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.h')
-rw-r--r-- | protocols/Tox/src/tox_proto.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 49f8a6c131..3ebd7fe88b 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -112,7 +112,12 @@ private: TOX_USERSTATUS MirandaToToxStatus(int status);
uint8_t *HexStringToData(const char *hex_string);
char *DataToHexString(const uint8_t *bin_string);
- void do_bootstrap(Tox *tox);
+
+ int LoadToxData(const char *path);
+ int SaveToxData(const char *path);
+
+ static void fraddr_to_str(uint8_t *id_bin, char *id_str);
+ static void get_id(Tox *m, char *data);
// dialogs
static INT_PTR CALLBACK AccountManagerProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|