Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
c0566bba
Commit
c0566bba
authored
Feb 03, 2016
by
Sandrine Avakian
Browse files
Updating sip_setup_register_all to use ms_factory_load_plugins.
parent
439b2a93
Changes
3
Hide whitespace changes
Inline
Side-by-side
coreapi/linphonecore.c
View file @
c0566bba
...
...
@@ -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
);
...
...
coreapi/sipsetup.c
View file @
c0566bba
...
...
@@ -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
++
;
...
...
coreapi/sipsetup.h
View file @
c0566bba
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment