Commit 5350cadf authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Added set/get user_data in LinphoneFactory

parent 8b8dcb3f
......@@ -57,6 +57,8 @@ struct _LinphoneFactory {
char *cached_image_resources_dir;
char *cached_msplugins_dir;
LinphoneErrorInfo* ei;
void *user_data;
};
static void linphone_factory_uninit(LinphoneFactory *obj){
......@@ -320,3 +322,11 @@ LinphoneTransports *linphone_factory_create_transports(LinphoneFactory *factory)
LinphoneVideoActivationPolicy *linphone_factory_create_video_activation_policy(LinphoneFactory *factory) {
return linphone_video_activation_policy_new();
}
void *linphone_factory_get_user_data(const LinphoneFactory *factory) {
return factory->user_data;
}
void linphone_factory_set_user_data(LinphoneFactory *factory, void *data) {
factory->user_data = data;
}
......@@ -261,6 +261,21 @@ LINPHONE_PUBLIC LinphoneTransports *linphone_factory_create_transports(LinphoneF
* @return LinphoneVideoActivationPolicy object.
*/
LINPHONE_PUBLIC LinphoneVideoActivationPolicy *linphone_factory_create_video_activation_policy(LinphoneFactory *factory);
/**
* Gets the user data in the LinphoneFactory object
* @param[in] factory the LinphoneFactory
* @return the user data
*/
LINPHONE_PUBLIC void *linphone_factory_get_user_data(const LinphoneFactory *factory);
/**
* Sets the user data in the LinphoneFactory object
* @param[in] factory the LinphoneFactory object
* @param[in] data the user data
*/
LINPHONE_PUBLIC void linphone_factory_set_user_data(LinphoneFactory *factory, void *data);
/**
* @}
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment