summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.h
diff options
context:
space:
mode:
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);