An error occurred while loading the file. Please try again.
-
Johann authored
git diff adds the following line to diffs: \ No newline at end of file which interferes with diff.py parsing. diff.py only looks for '+', '-' and ' ' at the beginning of the line. Issue seen on https://gerrit.chromium.org/gerrit/68611 Change-Id: I0d7b4485c470e0b409f2c9cddde6c9aceba0152e
f498d92f
/*
* Copyright (c) 2010-2022 Belledonne Communications SARL.
*
* This file is part of Liblinphone
* (see https://gitlab.linphone.org/BC/public/liblinphone).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef WIN32
#pragma push_macro("_WINSOCKAPI_")
#ifndef _WINSOCKAPI_
#define _WINSOCKAPI_
#endif // _WINSOCKAPI_
#include <windows.h>
#include <winsock2.h>
#endif
#include "private.h"
#include "tester_utils.h"
#include "c-wrapper/c-wrapper.h"
#include "call/call.h"
#include "chat/chat-room/chat-room-p.h"
#include "chat/chat-room/client-group-chat-room-p.h"
#include "chat/encryption/encryption-engine.h"
#include "conference/session/media-session-p.h"
#include "core/core-p.h"
#include "event-log/conference/conference-chat-message-event.h"
#include "mediastreamer2/msanalysedisplay.h"
using namespace std;
using namespace LinphonePrivate;
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;
}
void linphone_core_lime_x3dh_set_test_decryption_failure_flag(const LinphoneCore *lc, bool_t flag) {
L_GET_CPP_PTR_FROM_C_OBJECT(lc)->getEncryptionEngine()->setTestForceDecryptionFailureFlag((flag == TRUE));
}
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;
}
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) {
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
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;
}
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;
}
unsigned int _linphone_call_get_nb_audio_starts(const LinphoneCall *call) {
const LinphoneStreamInternalStats *st = _linphone_call_get_stream_internal_stats(call, LinphoneStreamTypeAudio);
return st ? st->number_of_starts : 0;
}
unsigned int _linphone_call_get_nb_audio_stops(const LinphoneCall *call) {
const LinphoneStreamInternalStats *st = _linphone_call_get_stream_internal_stats(call, LinphoneStreamTypeAudio);
return st ? st->number_of_stops : 0;
}
unsigned int _linphone_call_get_nb_video_starts(const LinphoneCall *call) {
const LinphoneStreamInternalStats *st = _linphone_call_get_stream_internal_stats(call, LinphoneStreamTypeVideo);
return st ? st->number_of_starts : 0;
}
unsigned int _linphone_call_get_nb_text_starts(const LinphoneCall *call) {
const LinphoneStreamInternalStats *st = _linphone_call_get_stream_internal_stats(call, LinphoneStreamTypeText);
return st ? st->number_of_starts : 0;
}