#include "stdafx.h" /* COMMON A/V FUNCTIONS */ ToxAv *toxav_new(Tox *tox, int32_t max_calls) { return CreateFunction(__FUNCTION__)(tox, max_calls); } 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); } 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); }