mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-01 02:39:22 +00:00
add linphone_core_clear_proxy_config
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@799 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
59c6549cd5
commit
aecda5f2c1
2 changed files with 13 additions and 2 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue