mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
101 lines
3.1 KiB
C++
101 lines
3.1 KiB
C++
/*
|
|
tester_utils.cpp
|
|
Copyright (C) 2017 Belledonne Communications SARL
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#include "tester_utils.h"
|
|
#include "private.h"
|
|
|
|
LinphoneVcardContext *linphone_core_get_vcard_context(const LinphoneCore *lc) {
|
|
return lc->vcard_context;
|
|
}
|
|
|
|
void linphone_core_set_zrtp_not_available_simulation(LinphoneCore *lc, bool_t enabled) {
|
|
lc->zrtp_not_available_simulation = enabled;
|
|
}
|
|
|
|
belle_http_provider_t *linphone_core_get_http_provider(const LinphoneCore *lc) {
|
|
return lc->http_provider;
|
|
}
|
|
|
|
void linphone_core_enable_send_call_stats_periodical_updates(LinphoneCore *lc, bool_t enabled) {
|
|
lc->send_call_stats_periodical_updates = enabled;
|
|
}
|
|
|
|
sqlite3 *linphone_core_get_sqlite_database(const LinphoneCore *lc) {
|
|
return lc->db;
|
|
}
|
|
|
|
void linphone_core_set_zrtp_cache_db(LinphoneCore *lc, sqlite3 *cache_db) {
|
|
lc->zrtp_cache_db = cache_db;
|
|
}
|
|
|
|
LinphoneCoreCbs *linphone_core_get_first_callbacks(const LinphoneCore *lc) {
|
|
return ((VTableReference *)lc->vtable_refs->data)->cbs;
|
|
}
|
|
|
|
bctbx_list_t **linphone_core_get_call_logs_attribute(LinphoneCore *lc) {
|
|
return &lc->call_logs;
|
|
}
|
|
|
|
void linphone_core_cbs_set_auth_info_requested(LinphoneCoreCbs *cbs, LinphoneCoreAuthInfoRequestedCb cb) {
|
|
cbs->vtable->auth_info_requested = cb;
|
|
}
|
|
|
|
LinphoneQualityReporting *linphone_call_log_get_quality_reporting(LinphoneCallLog *call_log) {
|
|
return &call_log->reporting;
|
|
}
|
|
|
|
reporting_session_report_t **linphone_quality_reporting_get_reports(LinphoneQualityReporting *qreporting) {
|
|
return &qreporting->reports[0];
|
|
}
|
|
|
|
const bctbx_list_t *linphone_friend_get_insubs(const LinphoneFriend *fr) {
|
|
return fr->insubs;
|
|
}
|
|
|
|
int linphone_friend_list_get_expected_notification_version(const LinphoneFriendList *list) {
|
|
return list->expected_notification_version;
|
|
}
|
|
|
|
unsigned int linphone_friend_list_get_storage_id(const LinphoneFriendList *list) {
|
|
return list->storage_id;
|
|
}
|
|
|
|
unsigned int linphone_friend_get_storage_id(const LinphoneFriend *lf) {
|
|
return lf->storage_id;
|
|
}
|
|
|
|
void linphone_friend_set_core(LinphoneFriend *lf, LinphoneCore *lc) {
|
|
lf->lc = lc;
|
|
}
|
|
|
|
LinphoneFriendList *linphone_friend_get_friend_list(const LinphoneFriend *lf) {
|
|
return lf->friend_list;
|
|
}
|
|
|
|
bctbx_list_t **linphone_friend_list_get_friends_attribute(LinphoneFriendList *lfl) {
|
|
return &lfl->friends;
|
|
}
|
|
|
|
const bctbx_list_t *linphone_friend_list_get_dirty_friends_to_update(const LinphoneFriendList *lfl) {
|
|
return lfl->dirty_friends_to_update;
|
|
}
|
|
|
|
int linphone_friend_list_get_revision(const LinphoneFriendList *lfl) {
|
|
return lfl->revision;
|
|
}
|