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
927f2c50
Commit
927f2c50
authored
Oct 18, 2017
by
Sylvain Berfini
🐮
Browse files
Added constructors for objects in factory
parent
84d94988
Changes
4
Hide whitespace changes
Inline
Side-by-side
coreapi/factory.c
View file @
927f2c50
...
...
@@ -323,6 +323,34 @@ LinphoneVideoActivationPolicy *linphone_factory_create_video_activation_policy(L
return
linphone_video_activation_policy_new
();
}
LinphoneContent
*
linphone_factory_create_content
(
LinphoneFactory
*
factory
)
{
return
linphone_content_new
();
}
LinphoneBuffer
*
linphone_factory_create_buffer
(
LinphoneFactory
*
factory
)
{
return
linphone_buffer_new
();
}
LinphoneBuffer
*
linphone_factory_create_buffer_from_data
(
LinphoneFactory
*
factory
,
const
uint8_t
*
data
,
size_t
size
)
{
return
linphone_buffer_new_from_data
(
data
,
size
);
}
LinphoneBuffer
*
linphone_factory_create_buffer_from_string
(
LinphoneFactory
*
factory
,
const
char
*
data
)
{
return
linphone_buffer_new_from_string
(
data
);
}
LinphoneConfig
*
linphone_factory_create_config
(
LinphoneFactory
*
factory
,
const
char
*
path
)
{
return
linphone_config_new
(
path
);
}
LinphoneConfig
*
linphone_factory_create_config_with_factory
(
LinphoneFactory
*
factory
,
const
char
*
path
,
const
char
*
factory_path
)
{
return
linphone_config_new_with_factory
(
path
,
factory_path
);
}
LinphoneConfig
*
linphone_factory_create_config_from_string
(
LinphoneFactory
*
factory
,
const
char
*
data
)
{
return
linphone_config_new_from_buffer
(
data
);
}
const
bctbx_list_t
*
linphone_factory_get_dial_plans
(
const
LinphoneFactory
*
factory
)
{
return
linphone_dial_plan_get_all_list
();
}
...
...
include/linphone/factory.h
View file @
927f2c50
...
...
@@ -269,6 +269,61 @@ LINPHONE_PUBLIC LinphoneVideoActivationPolicy *linphone_factory_create_video_act
*/
LINPHONE_PUBLIC
const
bctbx_list_t
*
linphone_factory_get_dial_plans
(
const
LinphoneFactory
*
factory
);
/**
* Creates an object LinphoneContent
* @param[in] factory the LinphoneFactory
* @return a LinphoneContent
*/
LINPHONE_PUBLIC
LinphoneContent
*
linphone_factory_create_content
(
LinphoneFactory
*
factory
);
/**
* Creates an object LinphoneBuffer
* @param[in] factory the LinphoneFactory
* @return a LinphoneBuffer
*/
LINPHONE_PUBLIC
LinphoneBuffer
*
linphone_factory_create_buffer
(
LinphoneFactory
*
factory
);
/**
* Creates an object LinphoneBuffer
* @param[in] factory the LinphoneFactory
* @param[in] data the data to set in the buffer
* @param[in] size the size of the data
* @return a LinphoneBuffer
*/
LINPHONE_PUBLIC
LinphoneBuffer
*
linphone_factory_create_buffer_from_data
(
LinphoneFactory
*
factory
,
const
uint8_t
*
data
,
size_t
size
);
/**
* Creates an object LinphoneBuffer
* @param[in] factory the LinphoneFactory
* @param[in] data the data to set in the buffer
* @return a LinphoneBuffer
*/
LINPHONE_PUBLIC
LinphoneBuffer
*
linphone_factory_create_buffer_from_string
(
LinphoneFactory
*
factory
,
const
char
*
data
);
/**
* Creates an object LinphoneConfig
* @param[in] factory the LinphoneFactory
* @param[in] the path of the config
* @return a LinphoneConfig
*/
LINPHONE_PUBLIC
LinphoneConfig
*
linphone_factory_create_config
(
LinphoneFactory
*
factory
,
const
char
*
path
);
/**
* Creates an object LinphoneConfig
* @param[in] factory the LinphoneFactory
* @param[in] the path of the config
* @param[in] the path of the factory
* @return a LinphoneConfig
*/
LINPHONE_PUBLIC
LinphoneConfig
*
linphone_factory_create_config_with_factory
(
LinphoneFactory
*
factory
,
const
char
*
path
,
const
char
*
factory_path
);
/**
* Creates an object LinphoneConfig
* @param[in] factory the LinphoneFactory
* @return a LinphoneConfig
*/
LINPHONE_PUBLIC
LinphoneConfig
*
linphone_factory_create_config_from_string
(
LinphoneFactory
*
factory
,
const
char
*
data
);
/**
* Gets the user data in the LinphoneFactory object
* @param[in] factory the LinphoneFactory
...
...
wrappers/java/classes/tools/OpenH264DownloadHelper.java
View file @
927f2c50
...
...
@@ -70,8 +70,8 @@ public class OpenH264DownloadHelper {
isDownloadEnabled
=
false
;
}
if
(
isCodecFound
())
{
Log
.
i
(
"OpenH264DownloadHelper"
,
" Loading OpenH264 downloaded plugin:"
+
downloadHelper
.
getFullPathLib
());
System
.
load
(
downloadHelper
.
getFullPathLib
());
Log
.
i
(
"OpenH264DownloadHelper"
,
" Loading OpenH264 downloaded plugin:"
+
getFullPathLib
());
System
.
load
(
getFullPathLib
());
}
else
{
Log
.
i
(
"OpenH264DownloadHelper"
,
" Cannot load OpenH264 downloaded plugin"
);
}
...
...
wrappers/java/migration.sh
View file @
927f2c50
...
...
@@ -211,6 +211,8 @@ s/.value()/.toInt()/g; \
s/clearAuthInfos()/clearAllAuthInfo()/g;
\
s/clearProxyConfigs()/clearProxyConfig()/g;
\
s/isVideoSupported()/videoSupported()/g;
\
s/getReceivedVideoDefinition().width/getReceivedVideoDefinition().getWidth()/g;
\
s/getReceivedVideoDefinition().height/getReceivedVideoDefinition().getHeight()/g;
\
s/VideoDefinition().toDisplayableString()/VideoDefinition().getName()/g;
\
s/isAccountUsed()/isAccountExist()/g;
\
s/loadXmlFile(/loadFromXmlFile(/g;
\
...
...
@@ -273,11 +275,8 @@ s/new XmlRpcSessionImpl(LinphoneManager.getLcIfManagerNotDestroyedOrNull(), /Lin
# TODO
#Tunnel, TunnelConfig
#AccountCreator.updatePassword => What to do ?
#Core.removeFriend(friend)
#Factory.instance().enableLogCollection(isDebugEnabled);
#Factory.instance().setDebugMode(isDebugEnabled, context.getString(R.string.app_name));
#setVideoDevice()
#Factory.instance().createBuffer();
# Manual changes required
# Some callbacks no longer exist, their name will be "removed", remove them
...
...
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