Commit aecda5f2 authored by smorlat's avatar smorlat

add linphone_core_clear_proxy_config

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@799 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 59c6549c
......@@ -352,7 +352,6 @@ int linphone_proxy_config_done(LinphoneProxyConfig *obj);
void linphone_proxy_config_enable_publish(LinphoneProxyConfig *obj, bool_t val);
bool_t linphone_proxy_config_is_registered(const LinphoneProxyConfig *obj);
const char *linphone_proxy_config_get_domain(const LinphoneProxyConfig *cfg);
/** Returns the proxy configured identity as a const char * */
#define linphone_proxy_config_get_route(obj) ((obj)->reg_route)
/** Returns the proxy configured identity as a const char * */
......@@ -723,6 +722,8 @@ bool_t linphone_core_check_payload_type_usability(LinphoneCore *lc, PayloadType
int linphone_core_add_proxy_config(LinphoneCore *lc, LinphoneProxyConfig *config);
void linphone_core_clear_proxy_config(LinphoneCore *lc);
void linphone_core_remove_proxy_config(LinphoneCore *lc, LinphoneProxyConfig *config);
const MSList *linphone_core_get_proxy_config_list(const LinphoneCore *lc);
......
......@@ -557,7 +557,17 @@ void linphone_core_remove_proxy_config(LinphoneCore *lc, LinphoneProxyConfig *cf
}
}
/**
* Erase all proxies from config.
*
* @ingroup proxy
**/
void linphone_core_clear_proxy_config(LinphoneCore *lc){
const MSList* list=linphone_core_get_proxy_config_list((const LinphoneCore*)lc);
for(;list!=NULL;list=list->next){
linphone_core_remove_proxy_config(lc,(LinphoneProxyConfig *)list->data);
}
}
/**
* Sets the default proxy.
*
......
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