Commit e71cdfa7 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Added getter/setter for LinphoneVideoActivationPolicy object

parent 740eac98
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment