summaryrefslogtreecommitdiff
path: root/toxav/toxav.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/toxav.h')
-rw-r--r--toxav/toxav.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/toxav/toxav.h b/toxav/toxav.h
index 5e82faa6..ec232ddd 100644
--- a/toxav/toxav.h
+++ b/toxav/toxav.h
@@ -246,7 +246,7 @@ void toxav_callback_call_state(ToxAV *av, toxav_call_state_cb *function, void *u
246typedef enum TOXAV_CALL_CONTROL { 246typedef enum TOXAV_CALL_CONTROL {
247 /** 247 /**
248 * Resume a previously paused call. Only valid if the pause was caused by this 248 * Resume a previously paused call. Only valid if the pause was caused by this
249 * client. Not valid before the call is accepted. 249 * client, if not, this control is ignored. Not valid before the call is accepted.
250 */ 250 */
251 TOXAV_CALL_CONTROL_RESUME, 251 TOXAV_CALL_CONTROL_RESUME,
252 /** 252 /**
@@ -269,7 +269,19 @@ typedef enum TOXAV_CALL_CONTROL {
269 * compliance, this will cause the `receive_video_frame` event to stop being 269 * compliance, this will cause the `receive_video_frame` event to stop being
270 * triggered on receiving an video frame from the friend. 270 * triggered on receiving an video frame from the friend.
271 */ 271 */
272 TOXAV_CALL_CONTROL_MUTE_VIDEO 272 TOXAV_CALL_CONTROL_MUTE_VIDEO,
273 /**
274 * Notify the friend that we are AGAIN ready to handle incoming audio.
275 * This control will not work if the call is not started with audio
276 * initiated.
277 */
278 TOXAV_CALL_CONTROL_UNMUTE_AUDIO,
279 /**
280 * Notify the friend that we are AGAIN ready to handle incoming video.
281 * This control will not work if the call is not started with video
282 * initiated.
283 */
284 TOXAV_CALL_CONTROL_UNMUTE_VIDEO
273} TOXAV_CALL_CONTROL; 285} TOXAV_CALL_CONTROL;
274typedef enum TOXAV_ERR_CALL_CONTROL { 286typedef enum TOXAV_ERR_CALL_CONTROL {
275 TOXAV_ERR_CALL_CONTROL_OK, 287 TOXAV_ERR_CALL_CONTROL_OK,
@@ -296,7 +308,11 @@ typedef enum TOXAV_ERR_CALL_CONTROL {
296 * other party paused the call. The call will resume after both parties sent 308 * other party paused the call. The call will resume after both parties sent
297 * the RESUME control. 309 * the RESUME control.
298 */ 310 */
299 TOXAV_ERR_CALL_CONTROL_ALREADY_PAUSED 311 TOXAV_ERR_CALL_CONTROL_ALREADY_PAUSED,
312 /**
313 * Tried to unmute a call that was not already muted.
314 */
315 TOXAV_ERR_CALL_CONTROL_NOT_MUTED
300} TOXAV_ERR_CALL_CONTROL; 316} TOXAV_ERR_CALL_CONTROL;
301/** 317/**
302 * Sends a call control command to a friend. 318 * Sends a call control command to a friend.