- rename config.h to engine_config.h to avoid possible problems with include directories order

This commit is contained in:
Dmytro Bogovych 2023-11-26 16:32:32 +03:00
parent 8ec6245496
commit 677faa0615
27 changed files with 33 additions and 29 deletions

View File

@ -57,6 +57,7 @@ if (USE_MUSL)
endif() endif()
set (RTPHONE_SOURCES set (RTPHONE_SOURCES
${rtphone_engine}/engine_config.h
${rtphone_engine}/media/MT_Statistics.cpp ${rtphone_engine}/media/MT_Statistics.cpp
${rtphone_engine}/media/MT_WebRtc.cpp ${rtphone_engine}/media/MT_WebRtc.cpp
${rtphone_engine}/media/MT_Stream.cpp ${rtphone_engine}/media/MT_Stream.cpp

View File

@ -7,7 +7,7 @@
#define __AUDIO_INTERFACE_H #define __AUDIO_INTERFACE_H
#include <string> #include <string>
#include "../config.h" #include "../engine_config.h"
#include "../helper/HL_Types.h" #include "../helper/HL_Types.h"
#include "../helper/HL_VariantMap.h" #include "../helper/HL_VariantMap.h"
#include "../helper/HL_Pointer.h" #include "../helper/HL_Pointer.h"

View File

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "../config.h" #include "../engine_config.h"
#include "../helper/HL_Exception.h" #include "../helper/HL_Exception.h"
#include "../helper/HL_Log.h" #include "../helper/HL_Log.h"

View File

@ -6,7 +6,7 @@
#ifndef _RX_MIXER_H #ifndef _RX_MIXER_H
#define _RX_MIXER_H #define _RX_MIXER_H
#include "../config.h" #include "../engine_config.h"
#include "../helper/HL_ByteBuffer.h" #include "../helper/HL_ByteBuffer.h"
#include "../helper/HL_Sync.h" #include "../helper/HL_Sync.h"
#include "Audio_Resampler.h" #include "Audio_Resampler.h"

View File

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "../config.h" #include "../engine_config.h"
#include "Audio_Quality.h" #include "Audio_Quality.h"
#include "../helper/HL_Exception.h" #include "../helper/HL_Exception.h"
#include "../helper/HL_Types.h" #include "../helper/HL_Types.h"

View File

@ -5,7 +5,7 @@
#ifndef __AUDIO_QUALITY_H #ifndef __AUDIO_QUALITY_H
#define __AUDIO_QUALITY_H #define __AUDIO_QUALITY_H
#include "../config.h" #include "../engine_config.h"
#include "../helper/HL_Sync.h" #include "../helper/HL_Sync.h"
#include <vector> #include <vector>

View File

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "../config.h" #include "../engine_config.h"
#include "Audio_Resampler.h" #include "Audio_Resampler.h"
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>

View File

@ -7,7 +7,7 @@
#include "helper/HL_Exception.h" #include "helper/HL_Exception.h"
#include "helper/HL_String.h" #include "helper/HL_String.h"
#include "helper/HL_Log.h" #include "helper/HL_Log.h"
#include "../config.h" #include "../engine_config.h"
#include <memory.h> #include <memory.h>
#include <assert.h> #include <assert.h>

View File

@ -47,7 +47,7 @@
#include "../ice/ICETime.h" #include "../ice/ICETime.h"
#include <sstream> #include <sstream>
#include <time.h> #include <time.h>
#include "../config.h" #include "../engine_config.h"
#include "EP_Session.h" #include "EP_Session.h"
#include "EP_Observer.h" #include "EP_Observer.h"
#include "EP_DataProvider.h" #include "EP_DataProvider.h"

View File

@ -35,7 +35,7 @@
#include <atomic> #include <atomic>
#include <time.h> #include <time.h>
#include "../config.h" #include "../engine_config.h"
#include "EP_Account.h" #include "EP_Account.h"
#include "EP_DataProvider.h" #include "EP_DataProvider.h"
#include "EP_AudioProvider.h" #include "EP_AudioProvider.h"

View File

@ -1,4 +1,4 @@
/* Copyright(C) 2007-2020 VoIP objects (voipobjects.com) /* Copyright(C) 2007-2023 VoIP objects (voipobjects.com)
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

View File

@ -7,7 +7,7 @@
# include <asm/ioctls.h> # include <asm/ioctls.h>
#endif #endif
#include "../config.h" #include "../engine_config.h"
#include "HL_NetworkSocket.h" #include "HL_NetworkSocket.h"
#if defined(TARGET_OSX) || defined(TARGET_LINUX) #if defined(TARGET_OSX) || defined(TARGET_LINUX)

View File

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "../config.h" #include "../engine_config.h"
#ifdef WIN32 #ifdef WIN32
#include <winsock2.h> #include <winsock2.h>
#include <windows.h> #include <windows.h>

View File

@ -6,7 +6,7 @@
#ifndef __SOCKET_HEAP_H #ifndef __SOCKET_HEAP_H
#define __SOCKET_HEAP_H #define __SOCKET_HEAP_H
#include "../config.h" #include "../engine_config.h"
#include <map> #include <map>
#include <vector> #include <vector>
#include <algorithm> #include <algorithm>

View File

@ -1,7 +1,7 @@
#ifndef MT_AMRCODEC_H #ifndef MT_AMRCODEC_H
#define MT_AMRCODEC_H #define MT_AMRCODEC_H
#include "../config.h" #include "../engine_config.h"
#include <map> #include <map>
#include "MT_Codec.h" #include "MT_Codec.h"
#include "../helper/HL_Pointer.h" #include "../helper/HL_Pointer.h"

View File

@ -5,7 +5,7 @@
#define NOMINMAX #define NOMINMAX
#include "../config.h" #include "../engine_config.h"
#include "MT_AudioCodec.h" #include "MT_AudioCodec.h"
#include "MT_CodecList.h" #include "MT_CodecList.h"
#include "../helper/HL_Exception.h" #include "../helper/HL_Exception.h"

View File

@ -6,7 +6,7 @@
#ifndef __AUDIO_CODEC_H #ifndef __AUDIO_CODEC_H
#define __AUDIO_CODEC_H #define __AUDIO_CODEC_H
#include "../config.h" #include "../engine_config.h"
#include <map> #include <map>
#include "MT_Codec.h" #include "MT_Codec.h"
#include "../audio/Audio_Resampler.h" #include "../audio/Audio_Resampler.h"

View File

@ -5,7 +5,7 @@
#define NOMINMAX #define NOMINMAX
#include "../config.h" #include "../engine_config.h"
#include "MT_AudioReceiver.h" #include "MT_AudioReceiver.h"
#include "MT_AudioCodec.h" #include "MT_AudioCodec.h"
#include "MT_CngHelper.h" #include "MT_CngHelper.h"

View File

@ -6,7 +6,7 @@
#ifndef __MT_AUDIOSTREAM_H #ifndef __MT_AUDIOSTREAM_H
#define __MT_AUDIOSTREAM_H #define __MT_AUDIOSTREAM_H
#include "../config.h" #include "../engine_config.h"
#include "MT_Stream.h" #include "MT_Stream.h"
#include "MT_NativeRtpSender.h" #include "MT_NativeRtpSender.h"
#include "MT_SingleAudioStream.h" #include "MT_SingleAudioStream.h"

View File

@ -1,4 +1,4 @@
#include "../config.h" #include "../engine_config.h"
#include "MT_CngHelper.h" #include "MT_CngHelper.h"
#include <stdlib.h> #include <stdlib.h>

View File

@ -5,7 +5,7 @@
#include <algorithm> #include <algorithm>
#include <list> #include <list>
#include "../config.h" #include "../engine_config.h"
#include "MT_CodecList.h" #include "MT_CodecList.h"
#include "MT_AudioCodec.h" #include "MT_AudioCodec.h"

View File

@ -6,7 +6,7 @@
#ifndef __MT_CODEC_LIST_H #ifndef __MT_CODEC_LIST_H
#define __MT_CODEC_LIST_H #define __MT_CODEC_LIST_H
#include "../config.h" #include "../engine_config.h"
#if defined(USE_RESIP_INTEGRATION) #if defined(USE_RESIP_INTEGRATION)
# include "resiprocate/resip/stack/SdpContents.hxx" # include "resiprocate/resip/stack/SdpContents.hxx"

View File

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "../config.h" #include "../engine_config.h"
#include "MT_Dtmf.h" #include "MT_Dtmf.h"

View File

@ -6,7 +6,7 @@
#ifndef MT_DTMF #ifndef MT_DTMF
#define MT_DTMF #define MT_DTMF
#include "../config.h" #include "../engine_config.h"
#include <vector> #include <vector>
#include <string> #include <string>
#include "../helper/HL_ByteBuffer.h" #include "../helper/HL_ByteBuffer.h"

View File

@ -1,5 +1,7 @@
#pragma once #ifndef __MT_EVS_CODEC_H
#define __MT_EVS_CODEC_H
#include "../engine_config.h"
#include <set> #include <set>
#include <map> #include <map>
#include <memory> #include <memory>
@ -10,7 +12,6 @@
#include <assert.h> #include <assert.h>
#include <sstream> #include <sstream>
#include "config.h"
#include "MT_Codec.h" #include "MT_Codec.h"
#include "libevs/lib_com/prot.h" #include "libevs/lib_com/prot.h"
@ -40,7 +41,7 @@ public:
public: public:
EVSFactory(StreamParameters& sp); EVSFactory(StreamParameters& sp);
const char* name() { return MT_EVS_CODECNAME; }; const char* name() { return MT_EVS_CODECNAME; }
int samplerate(); int samplerate();
int payloadType(); int payloadType();
PCodec create(); PCodec create();
@ -51,7 +52,7 @@ public:
EVSCodec(const StreamParameters& sp); EVSCodec(const StreamParameters& sp);
~EVSCodec() override; ~EVSCodec() override;
const char* name() override { return MT_EVS_CODECNAME; } ; const char* name() override { return MT_EVS_CODECNAME; }
int samplerate() override; int samplerate() override;
int pcmLength() override; int pcmLength() override;
int frameTime() override; int frameTime() override;
@ -68,3 +69,5 @@ private:
}; };
} // End of namespace } // End of namespace
#endif

View File

@ -6,7 +6,7 @@
#ifndef __MT_NATIVE_RTP_SENDER_H #ifndef __MT_NATIVE_RTP_SENDER_H
#define __MT_NATIVE_RTP_SENDER_H #define __MT_NATIVE_RTP_SENDER_H
#include "../config.h" #include "../engine_config.h"
#include "jrtplib/src/rtpexternaltransmitter.h" #include "jrtplib/src/rtpexternaltransmitter.h"
#include "srtp/include/srtp.h" #include "srtp/include/srtp.h"
#include "../helper/HL_NetworkSocket.h" #include "../helper/HL_NetworkSocket.h"

View File

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "../config.h" #include "../engine_config.h"
#include "MT_WebRtc.h" #include "MT_WebRtc.h"
#include "../helper/HL_Exception.h" #include "../helper/HL_Exception.h"