mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
Added getter/setter for LinphoneVideoActivationPolicy object
This commit is contained in:
parent
740eac982a
commit
e71cdfa713
2 changed files with 48 additions and 0 deletions
|
|
@ -4953,6 +4953,22 @@ void linphone_video_activation_policy_set_user_data(LinphoneVideoActivationPolic
|
|||
policy->user_data = data;
|
||||
}
|
||||
|
||||
bool_t linphone_video_activation_policy_get_automatically_accept(const LinphoneVideoActivationPolicy *policy) {
|
||||
return policy->automatically_accept;
|
||||
}
|
||||
|
||||
bool_t linphone_video_activation_policy_get_automatically_initiate(const LinphoneVideoActivationPolicy *policy) {
|
||||
return policy->automatically_initiate;
|
||||
}
|
||||
|
||||
void linphone_video_activation_policy_set_automatically_accept(LinphoneVideoActivationPolicy *policy, bool_t enable) {
|
||||
policy->automatically_accept = enable;
|
||||
}
|
||||
|
||||
void linphone_video_activation_policy_set_automatically_initiate(LinphoneVideoActivationPolicy *policy, bool_t enable) {
|
||||
policy->automatically_initiate = enable;
|
||||
}
|
||||
|
||||
void linphone_core_set_video_activation_policy(LinphoneCore *lc, const LinphoneVideoActivationPolicy *policy) {
|
||||
lc->video_policy.automatically_accept = policy->automatically_accept;
|
||||
lc->video_policy.automatically_initiate = policy->automatically_initiate;
|
||||
|
|
|
|||
|
|
@ -3257,6 +3257,38 @@ LINPHONE_PUBLIC void *linphone_video_activation_policy_get_user_data(const Linph
|
|||
*/
|
||||
LINPHONE_PUBLIC void linphone_video_activation_policy_set_user_data(LinphoneVideoActivationPolicy *policy, void *data);
|
||||
|
||||
/**
|
||||
* Gets the value for the automatically accept video policy
|
||||
* @param[in] policy the LinphoneVideoActivationPolicy object
|
||||
* @return whether or not to automatically accept video requests is enabled
|
||||
* @ingroup media_parameters
|
||||
*/
|
||||
LINPHONE_PUBLIC bool_t linphone_video_activation_policy_get_automatically_accept(const LinphoneVideoActivationPolicy *policy);
|
||||
|
||||
/**
|
||||
* Gets the value for the automatically initiate video policy
|
||||
* @param[in] policy the LinphoneVideoActivationPolicy object
|
||||
* @return whether or not to automatically initiate video calls is enabled
|
||||
* @ingroup media_parameters
|
||||
*/
|
||||
LINPHONE_PUBLIC bool_t linphone_video_activation_policy_get_automatically_initiate(const LinphoneVideoActivationPolicy *policy);
|
||||
|
||||
/**
|
||||
* Sets the value for the automatically accept video policy
|
||||
* @param[in] policy the LinphoneVideoActivationPolicy object
|
||||
* @param[in] enable whether or not to enable automatically accept video requests
|
||||
* @ingroup media_parameters
|
||||
*/
|
||||
LINPHONE_PUBLIC void linphone_video_activation_policy_set_automatically_accept(LinphoneVideoActivationPolicy *policy, bool_t enable);
|
||||
|
||||
/**
|
||||
* Sets the value for the automatically initiate video policy
|
||||
* @param[in] policy the LinphoneVideoActivationPolicy object
|
||||
* @param[in] enable whether or not to enable automatically initiate video calls
|
||||
* @ingroup media_parameters
|
||||
*/
|
||||
LINPHONE_PUBLIC void linphone_video_activation_policy_set_automatically_initiate(LinphoneVideoActivationPolicy *policy, bool_t enable);
|
||||
|
||||
/**
|
||||
* Sets the default policy for video.
|
||||
* This policy defines whether:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue