From 4d0735ab834be6c541e7e577fbe76c888bf4d09f Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 14 Apr 2015 20:32:40 +0000 Subject: Tox: second approach for audio support git-svn-id: http://svn.miranda-ng.org/main/trunk@12827 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_proto.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'protocols/Tox/src/tox_proto.h') diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 07d229c4d2..8d75753713 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -61,6 +61,8 @@ public: static void UninitMenus(); // events + static void InitCustomDbEvents(); + static int OnModulesLoaded(WPARAM, LPARAM); private: @@ -135,7 +137,7 @@ private: int __cdecl OnOptionsInit(WPARAM wParam, LPARAM lParam); // events - int __cdecl OnContactDeleted(MCONTACT, LPARAM); + static int __cdecl OnDbEventAdded(WPARAM hContact, LPARAM hEvent); // userinfo static INT_PTR CALLBACK UserInfoProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); @@ -160,6 +162,8 @@ private: INT_PTR __cdecl OnRequestAuth(WPARAM hContact, LPARAM lParam); INT_PTR __cdecl OnGrantAuth(WPARAM hContact, LPARAM); + int __cdecl OnContactDeleted(MCONTACT, LPARAM); + static void OnFriendRequest(Tox *tox, const uint8_t *pubKey, const uint8_t *message, size_t length, void *arg); static void OnFriendNameChange(Tox *tox, uint32_t friendNumber, const uint8_t *name, size_t length, void *arg); static void OnStatusMessageChanged(Tox *tox, uint32_t friendNumber, const uint8_t *message, size_t length, void *arg); @@ -250,6 +254,8 @@ private: static void OnAvRequestTimeout(void*, int32_t callId, void *arg); static void OnAvPeerTimeout(void*, int32_t callId, void *arg); + INT_PTR __cdecl OnRecvAudioCall(WPARAM wParam, LPARAM lParam); + // utils TOX_USER_STATUS MirandaToToxStatus(int status); int ToxToMirandaStatus(TOX_USER_STATUS userstatus); -- cgit v1.2.3