mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Updating sip_setup_register_all to use ms_factory_load_plugins.
This commit is contained in:
parent
439b2a93e3
commit
c0566bbad0
3 changed files with 5 additions and 4 deletions
|
|
@ -1526,7 +1526,7 @@ static void misc_config_read(LinphoneCore *lc) {
|
|||
}
|
||||
|
||||
static void linphone_core_start(LinphoneCore * lc) {
|
||||
sip_setup_register_all();
|
||||
sip_setup_register_all(lc->factory);
|
||||
sound_config_read(lc);
|
||||
net_config_read(lc);
|
||||
rtp_config_read(lc);
|
||||
|
|
|
|||
|
|
@ -35,9 +35,10 @@ void sip_setup_register(SipSetup *ss){
|
|||
registered_sip_setups=ms_list_append(registered_sip_setups,ss);
|
||||
}
|
||||
|
||||
void sip_setup_register_all(void){
|
||||
void sip_setup_register_all(MSFactory *factory){
|
||||
SipSetup **p=all_sip_setups;
|
||||
ms_load_plugins(LINPHONE_PLUGINS_DIR);
|
||||
ms_factory_load_plugins(factory, LINPHONE_PLUGINS_DIR);
|
||||
//ms_load_plugins(LINPHONE_PLUGINS_DIR);
|
||||
while(*p!=NULL){
|
||||
sip_setup_register(*p);
|
||||
p++;
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ void buddy_lookup_request_set_max_results(BuddyLookupRequest *req, int ncount);
|
|||
|
||||
|
||||
void sip_setup_register(SipSetup *ss);
|
||||
void sip_setup_register_all(void);
|
||||
void sip_setup_register_all(MSFactory* factory);
|
||||
SipSetup *sip_setup_lookup(const char *type_name);
|
||||
void sip_setup_unregister_all(void);
|
||||
LINPHONE_PUBLIC unsigned int sip_setup_get_capabilities(SipSetup *s);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue