diff --git a/coreapi/friend.c b/coreapi/friend.c index c103f4035..b83764f93 100644 --- a/coreapi/friend.c +++ b/coreapi/friend.c @@ -1715,6 +1715,10 @@ void linphone_core_set_friends_database_path(LinphoneCore *lc, const char *path) } } +const char* linphone_core_get_friends_database_path(LinphoneCore *lc) { + return lc->friends_db_file; +} + void linphone_core_migrate_friends_from_rc_to_db(LinphoneCore *lc) { LpConfig *lpc = NULL; LinphoneFriend *lf = NULL; diff --git a/coreapi/friendlist.c b/coreapi/friendlist.c index 5055b0ff5..9e3f0a26a 100644 --- a/coreapi/friendlist.c +++ b/coreapi/friendlist.c @@ -1112,3 +1112,7 @@ void linphone_friend_list_enable_subscriptions(LinphoneFriendList *list, bool_t } } + +bool_t linphone_friend_list_subscriptions_enabled(LinphoneFriendList *list) { + return list->enable_subscriptions; +} diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 2d546440a..62b30e460 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -4657,6 +4657,10 @@ void linphone_core_set_call_logs_database_path(LinphoneCore *lc, const char *pat } } +const char * linphone_core_get_call_logs_database_path(LinphoneCore *lc) { + return lc->logs_db_file; +} + const bctbx_list_t* linphone_core_get_call_logs(LinphoneCore *lc) { #ifdef SQLITE_STORAGE_ENABLED if (lc->logs_db) { diff --git a/include/linphone/core.h b/include/linphone/core.h index 2ba7899e7..48a62c3ba 100644 --- a/include/linphone/core.h +++ b/include/linphone/core.h @@ -721,6 +721,13 @@ LINPHONE_PUBLIC void linphone_core_set_log_collection_max_file_size(size_t size) */ LINPHONE_PUBLIC void linphone_core_set_log_collection_upload_server_url(LinphoneCore *core, const char *server_url); +/** + * Gets the url of the server where to upload the collected log files. + * @param[in] core LinphoneCore object + * @return The url of the server where to upload the collected log files. + */ +LINPHONE_PUBLIC const char * linphone_core_get_log_collection_upload_server_url(LinphoneCore *core); + /** * Upload the log collection to the configured server url. * @param[in] core LinphoneCore object @@ -3106,6 +3113,14 @@ LINPHONE_PUBLIC void linphone_core_remove_call_log(LinphoneCore *lc, LinphoneCal **/ LINPHONE_PUBLIC void linphone_core_set_call_logs_database_path(LinphoneCore *lc, const char *path); +/** + * Gets the database filename where call logs will be stored. + * @ingroup initializing + * @param lc the linphone core + * @return filesystem path +**/ +LINPHONE_PUBLIC const char * linphone_core_get_call_logs_database_path(LinphoneCore *lc); + /** * Migrates the call logs from the linphonerc to the database if not done yet * @ingroup initializing @@ -5054,6 +5069,14 @@ LINPHONE_PUBLIC LinphoneFriend *linphone_core_get_friend_by_ref_key(const Linpho **/ LINPHONE_PUBLIC void linphone_core_set_friends_database_path(LinphoneCore *lc, const char *path); +/** + * Gets the database filename where friends will be stored. + * @ingroup initializing + * @param lc the linphone core + * @return filesystem path +**/ +LINPHONE_PUBLIC const char* linphone_core_get_friends_database_path(LinphoneCore *lc); + /** * Migrates the friends from the linphonerc to the database if not done yet * @ingroup initializing diff --git a/include/linphone/friendlist.h b/include/linphone/friendlist.h index f8093db2d..1780e8723 100644 --- a/include/linphone/friendlist.h +++ b/include/linphone/friendlist.h @@ -333,6 +333,13 @@ LINPHONE_PUBLIC void linphone_friend_list_export_friends_as_vcard4_file(Linphone */ LINPHONE_PUBLIC void linphone_friend_list_enable_subscriptions(LinphoneFriendList *list, bool_t enabled); +/** + * Gets whether subscription to NOTIFYes of all friends list are enabled or not + * @param[in] list the LinphoneFriendList object + * @return Whether subscriptions are enabled or not + */ +LINPHONE_PUBLIC bool_t linphone_friend_list_subscriptions_enabled(LinphoneFriendList *list); + /** * @} */