2015-07-19 16:51:35 +02:00
|
|
|
/* video_call.h
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014 Toxic All Rights Reserved.
|
|
|
|
*
|
|
|
|
* This file is part of Toxic.
|
|
|
|
*
|
|
|
|
* Toxic is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Toxic is distributed in the hope that it will be useful,
|
2015-08-11 13:11:09 +02:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with Toxic. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2015-07-19 16:51:35 +02:00
|
|
|
|
|
|
|
#ifndef VIDEO_CALL_H
|
|
|
|
#define VIDEO_CALL_H
|
|
|
|
|
|
|
|
#include <tox/toxav.h>
|
|
|
|
|
2015-07-22 20:06:14 +02:00
|
|
|
#include "audio_call.h"
|
2015-11-12 11:01:28 +01:00
|
|
|
|
2015-07-19 16:51:35 +02:00
|
|
|
#include "video_device.h"
|
|
|
|
|
|
|
|
/* You will have to pass pointer to first member of 'windows' declared in windows.c */
|
2015-08-11 13:11:09 +02:00
|
|
|
ToxAV *init_video(ToxWindow *self, Tox *tox);
|
2018-09-14 01:47:47 +02:00
|
|
|
void terminate_video(void);
|
2015-07-30 08:49:27 +02:00
|
|
|
int start_video_transmission(ToxWindow *self, ToxAV *av, Call *call);
|
|
|
|
int stop_video_transmission(Call *call, int friend_number);
|
2015-07-19 16:51:35 +02:00
|
|
|
|
2015-08-11 13:11:09 +02:00
|
|
|
void callback_recv_video_starting(uint32_t friend_number);
|
|
|
|
void callback_recv_video_end(uint32_t friend_number);
|
|
|
|
void callback_video_starting(uint32_t friend_number);
|
|
|
|
void callback_video_end(uint32_t friend_number);
|
2015-08-10 13:14:38 +02:00
|
|
|
|
2015-11-12 11:01:28 +01:00
|
|
|
#endif /* VIDEO_CALL_H */
|