forked from mirrors/linphone-iphone
Add linphone_core_create_account_creator()
This commit is contained in:
parent
13b127caa2
commit
d8568491eb
2 changed files with 19 additions and 1 deletions
|
|
@ -314,7 +314,7 @@ BELLE_SIP_INSTANCIATE_VPTR(LinphoneAccountCreator, belle_sip_object_t,
|
|||
FALSE
|
||||
);
|
||||
|
||||
LinphoneAccountCreator * linphone_account_creator_new(LinphoneCore *core, const char *xmlrpc_url) {
|
||||
LinphoneAccountCreator * _linphone_account_creator_new(LinphoneCore *core, const char *xmlrpc_url) {
|
||||
LinphoneAccountCreator *creator;
|
||||
const char* domain = lp_config_get_string(core->config, "assistant", "domain", NULL);
|
||||
creator = belle_sip_object_new(LinphoneAccountCreator);
|
||||
|
|
@ -331,6 +331,14 @@ LinphoneAccountCreator * linphone_account_creator_new(LinphoneCore *core, const
|
|||
return creator;
|
||||
}
|
||||
|
||||
LinphoneAccountCreator * linphone_account_creator_new(LinphoneCore *core, const char *xmlrpc_url) {
|
||||
return _linphone_account_creator_new(core, xmlrpc_url);
|
||||
}
|
||||
|
||||
LinphoneAccountCreator * linphone_core_create_account_creator(LinphoneCore *core, const char *xmlrpc_url) {
|
||||
return _linphone_account_creator_new(core, xmlrpc_url);
|
||||
}
|
||||
|
||||
LinphoneAccountCreator * linphone_account_creator_ref(LinphoneAccountCreator *creator) {
|
||||
belle_sip_object_ref(creator);
|
||||
return creator;
|
||||
|
|
|
|||
|
|
@ -4890,6 +4890,16 @@ LINPHONE_PUBLIC LinphoneNatPolicy * linphone_core_create_nat_policy(LinphoneCore
|
|||
LINPHONE_PUBLIC LinphoneNatPolicy * linphone_core_create_nat_policy_from_config(LinphoneCore *lc, const char *ref);
|
||||
|
||||
|
||||
/**
|
||||
* Create a LinphoneAccountCreator and set Linphone Request callbacks.
|
||||
* @param[in] core The LinphoneCore used for the XML-RPC communication
|
||||
* @param[in] xmlrpc_url The URL to the XML-RPC server. Must be NON NULL.
|
||||
* @return The new LinphoneAccountCreator object.
|
||||
* @ingroup account_creator
|
||||
**/
|
||||
LINPHONE_PUBLIC LinphoneAccountCreator * linphone_core_create_account_creator(LinphoneCore *core, const char *xmlrpc_url);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue