summaryrefslogtreecommitdiff
path: root/toxav/toxav.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/toxav.h')
-rw-r--r--toxav/toxav.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/toxav/toxav.h b/toxav/toxav.h
index a548ee90..2e71c4da 100644
--- a/toxav/toxav.h
+++ b/toxav/toxav.h
@@ -74,6 +74,15 @@ typedef enum {
74} ToxAvCallType; 74} ToxAvCallType;
75 75
76 76
77typedef enum {
78 av_CallNonExistant = -1,
79 av_CallInviting, /* when sending call invite */
80 av_CallStarting, /* when getting call invite */
81 av_CallActive,
82 av_CallHold,
83 av_CallHanged_up
84} ToxAvCallState;
85
77/** 86/**
78 * @brief Error indicators. 87 * @brief Error indicators.
79 */ 88 */
@@ -343,6 +352,15 @@ int toxav_get_peer_transmission_type ( ToxAv *av, int32_t call_index, int peer )
343int toxav_get_peer_id ( ToxAv *av, int32_t call_index, int peer ); 352int toxav_get_peer_id ( ToxAv *av, int32_t call_index, int peer );
344 353
345/** 354/**
355 * @brief Get current call state
356 *
357 * @param av Handler
358 * @param call_index What call
359 * @return int
360 * @retval ToxAvCallState State id
361 */
362ToxAvCallState toxav_get_call_state ( ToxAv *av, int32_t call_index );
363/**
346 * @brief Is certain capability supported 364 * @brief Is certain capability supported
347 * 365 *
348 * @param av Handler 366 * @param av Handler