diff --git a/include/linphone/auth_info.h b/include/linphone/auth_info.h index 55e0d425c1e048bcd19128f84391a51d51a4ca85..4a00e324d873010e596e7dde9c1df3f5ee1f5bd0 100644 --- a/include/linphone/auth_info.h +++ b/include/linphone/auth_info.h @@ -61,6 +61,16 @@ LINPHONE_PUBLIC LinphoneAuthInfo *linphone_auth_info_new(const char *username, c */ LINPHONE_PUBLIC LinphoneAuthInfo *linphone_auth_info_clone(const LinphoneAuthInfo* source); +/** + * Take a reference on a #LinphoneAuthInfo. + */ +LINPHONE_PUBLIC LinphoneAuthInfo *linphone_auth_info_ref(LinphoneAuthInfo *info); + +/** + * Release a #LinphoneAuthInfo. + */ +LINPHONE_PUBLIC void linphone_auth_info_unref(LinphoneAuthInfo *info); + /** * Sets the password. * @param[in] info The #LinphoneAuthInfo object @@ -204,7 +214,7 @@ LINPHONE_PUBLIC const char *linphone_auth_info_get_tls_cert_path(const LinphoneA LINPHONE_PUBLIC const char *linphone_auth_info_get_tls_key_path(const LinphoneAuthInfo *info); /* you don't need those function*/ -LINPHONE_PUBLIC void linphone_auth_info_destroy(LinphoneAuthInfo *info); +LINPHONE_PUBLIC LINPHONE_DEPRECATED void linphone_auth_info_destroy(LinphoneAuthInfo *info); /** * @}