From f2dcf0c403d9083ec794376ba690d79727a6d318 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 15 Apr 2015 21:29:20 +0000 Subject: Tox: audio support pt.3 git-svn-id: http://svn.miranda-ng.org/main/trunk@12850 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/api_av.cpp | 100 +++++++++++++++++++++---------------------- 1 file changed, 50 insertions(+), 50 deletions(-) (limited to 'protocols/Tox/src/api_av.cpp') diff --git a/protocols/Tox/src/api_av.cpp b/protocols/Tox/src/api_av.cpp index 4f517187ac..afcf544bbf 100644 --- a/protocols/Tox/src/api_av.cpp +++ b/protocols/Tox/src/api_av.cpp @@ -12,99 +12,99 @@ void toxav_kill(ToxAv *av) CreateFunction(__FUNCTION__)(av); } -uint32_t toxav_do_interval(ToxAv *av) -{ - return CreateFunction(__FUNCTION__)(av); -} - -void toxav_do(ToxAv *av) -{ - CreateFunction(__FUNCTION__)(av); -} - -void toxav_register_callstate_callback(ToxAv *av, ToxAVCallback cb, ToxAvCallbackID id, void *userdata) -{ - CreateFunction(__FUNCTION__)(av, cb, id, userdata); -} - +uint32_t toxav_do_interval(ToxAv *av) +{ + return CreateFunction(__FUNCTION__)(av); +} + +void toxav_do(ToxAv *av) +{ + CreateFunction(__FUNCTION__)(av); +} + +void toxav_register_callstate_callback(ToxAv *av, ToxAVCallback cb, ToxAvCallbackID id, void *userdata) +{ + CreateFunction(__FUNCTION__)(av, cb, id, userdata); +} + int toxav_call(ToxAv *av, int32_t *call_index, int friend_id, const ToxAvCSettings *csettings, int ringing_seconds) { return CreateFunction(__FUNCTION__)(av, call_index, friend_id, csettings, ringing_seconds); -} - +} + int toxav_hangup(ToxAv *av, int32_t call_index) { return CreateFunction(__FUNCTION__)(av, call_index); -} - +} + int toxav_answer(ToxAv *av, int32_t call_index, const ToxAvCSettings *csettings) { return CreateFunction(__FUNCTION__)(av, call_index, csettings); -} - +} + int toxav_reject(ToxAv *av, int32_t call_index, const char *reason) { return CreateFunction(__FUNCTION__)(av, call_index, reason); -} - +} + int toxav_cancel(ToxAv *av, int32_t call_index, int peer_id, const char *reason) { return CreateFunction(__FUNCTION__)(av, call_index, peer_id, reason); -} - +} + int toxav_change_settings(ToxAv *av, int32_t call_index, const ToxAvCSettings *csettings) { return CreateFunction(__FUNCTION__)(av, call_index, csettings); -} - +} + int toxav_stop_call(ToxAv *av, int32_t call_index) { return CreateFunction(__FUNCTION__)(av, call_index); -} - +} + int toxav_prepare_transmission(ToxAv *av, int32_t call_index, int support_video) { return CreateFunction(__FUNCTION__)(av, call_index, support_video); -} - +} + int toxav_kill_transmission(ToxAv *av, int32_t call_index) { return CreateFunction(__FUNCTION__)(av, call_index); -} - +} + int toxav_get_peer_csettings(ToxAv *av, int32_t call_index, int peer, ToxAvCSettings *dest) { return CreateFunction(__FUNCTION__)(av, call_index, peer, dest); -} - +} + int toxav_get_peer_id(ToxAv *av, int32_t call_index, int peer) { return CreateFunction(__FUNCTION__)(av, call_index, peer); -} - +} + ToxAvCallState toxav_get_call_state(ToxAv *av, int32_t call_index) { return CreateFunction(__FUNCTION__)(av, call_index); -} - +} + int toxav_capability_supported(ToxAv *av, int32_t call_index, ToxAvCapabilities capability) { return CreateFunction(__FUNCTION__)(av, call_index, capability); -} - +} + Tox *toxav_get_tox(ToxAv *av) { return CreateFunction(__FUNCTION__)(av); -} - +} + int toxav_get_active_count(ToxAv *av) { return CreateFunction(__FUNCTION__)(av); -} - -/* AUDIO FUNCTIONS */ - -void toxav_register_audio_callback(ToxAv *av, ToxAvAudioCallback cb, void *userdata) -{ - CreateFunction(__FUNCTION__)(av, cb, userdata); +} + +/* AUDIO FUNCTIONS */ + +void toxav_register_audio_callback(ToxAv *av, ToxAvAudioCallback cb, void *userdata) +{ + CreateFunction(__FUNCTION__)(av, cb, userdata); } \ No newline at end of file -- cgit v1.2.3