summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-04-14 17:55:10 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-04-14 17:55:10 +0000
commit5da95c8f396b7ac716f7ea61c9d8c5a0eee7e1ec (patch)
tree6e1417af1fd835fc5998b1558cf4c26d3c908285 /protocols/Tox/src/tox_proto.h
parenta216cdaab245e00627e69726d1d65d06e91f03f9 (diff)
Tox: first approach for audio support
git-svn-id: http://svn.miranda-ng.org/main/trunk@12824 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.h')
-rw-r--r--protocols/Tox/src/tox_proto.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h
index 82bfe006f3..07d229c4d2 100644
--- a/protocols/Tox/src/tox_proto.h
+++ b/protocols/Tox/src/tox_proto.h
@@ -65,6 +65,7 @@ public:
private:
Tox *tox;
+ ToxAv *toxAv;
char *password;
mir_cs toxLock;
TCHAR *accountName;
@@ -235,7 +236,19 @@ private:
void OnGotFriendAvatarInfo(FileTransferParam *transfer, const uint8_t *hash);
- // folders
+ // multimedia
+ std::map<int, int> calls;
+ static void OnFriendAudio(void *agent, int32_t callId, const int16_t *PCM, uint16_t size, void *arg);
+
+ static void OnAvInvite(void*, int32_t callId, void *arg);
+ static void OnAvRinging(void*, int32_t callId, void *arg);
+ static void OnAvStart(void*, int32_t callId, void *arg);
+ static void OnAvEnd(void*, int32_t callId, void *arg);
+ static void OnAvReject(void*, int32_t callId, void *arg);
+ static void OnAvCancel(void*, int32_t callId, void *arg);
+ static void OnAvCsChange(void*, int32_t callId, void *arg);
+ static void OnAvRequestTimeout(void*, int32_t callId, void *arg);
+ static void OnAvPeerTimeout(void*, int32_t callId, void *arg);
// utils
TOX_USER_STATUS MirandaToToxStatus(int status);