Skip to content

Commit

Permalink
Renaming WPEFramework to Thunder
Browse files Browse the repository at this point in the history
  • Loading branch information
HaseenaSainul committed May 24, 2024
1 parent adad394 commit c25061a
Show file tree
Hide file tree
Showing 59 changed files with 1,090 additions and 94 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ install_manifest.txt
Makefile
*/*/Makefile
*/*/*/Makefile
*/*/WPEFramework*Config.cmake
*/*/WPEFramework*ConfigVersion.cmake
*/*/Thunder*Config.cmake
*/*/Thunder*ConfigVersion.cmake
*.pc
*.so.*
*.so
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
cmake_minimum_required(VERSION 3.3)
project(Libraries)

find_package(WPEFramework)
find_package(Thunder)

if (BUILD_REFERENCE)
add_definitions (-DBUILD_REFERENCE=${BUILD_REFERENCE})
Expand Down
6 changes: 3 additions & 3 deletions Source/asconnector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ find_package( systemd REQUIRED )
find_package( udev REQUIRED )

Find Library for Tracing and JSON
find_package(WPEFramework REQUIRED)
find_package(WPEFrameworkMessaging REQUIRED)
find_package(Thunder REQUIRED)
find_package(ThunderMessaging REQUIRED)

# We require C++14
set( CMAKE_CXX_STANDARD 14 )
Expand Down Expand Up @@ -62,7 +62,7 @@ add_executable(

target_link_libraries(

WPEFrameworkProtocols::WPEFrameworkProtocols
ThunderProtocols::ThunderProtocols

${SYSTEMD_LIBRARIES}

Expand Down
4 changes: 2 additions & 2 deletions Source/bluetooth/BluetoothUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "BluetoothUtils.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down Expand Up @@ -215,4 +215,4 @@ void BtUtilsBaswap(bdaddr_t* dst, const bdaddr_t* src)

} // namespace Bluetooth

} // namespace WPEFramework
} // namespace Thunder
4 changes: 2 additions & 2 deletions Source/bluetooth/BluetoothUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "Module.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down Expand Up @@ -58,4 +58,4 @@ inline void BtUtilsHciFilterSetPtype(int t, struct hci_filter *f)

} // namespace Bluetooth

} // namespace WPEFramework
} // namespace Thunder
2 changes: 1 addition & 1 deletion Source/bluetooth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

cmake_minimum_required(VERSION 3.3)

find_package(WPEFramework)
find_package(Thunder)
find_package(${NAMESPACE}Core REQUIRED)
find_package(${NAMESPACE}Messaging REQUIRED)
find_package(CompileSettingsDebug CONFIG REQUIRED)
Expand Down
4 changes: 2 additions & 2 deletions Source/bluetooth/Definitions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "Module.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down Expand Up @@ -113,5 +113,5 @@ namespace Bluetooth {
return (pos->text != nullptr ? pos->text : _T("reserved"));
}

} } // namespace WPEFramework::Bluetooth
} } // namespace Thunder::Bluetooth

2 changes: 1 addition & 1 deletion Source/bluetooth/HCISocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "HCISocket.h"

namespace WPEFramework {
namespace Thunder {

ENUM_CONVERSION_BEGIN(Bluetooth::Address::type)
{ Bluetooth::Address::BREDR_ADDRESS, _TXT(_T("bredr")) },
Expand Down
4 changes: 2 additions & 2 deletions Source/bluetooth/HCISocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "UUID.h"
#include "BluetoothUtils.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down Expand Up @@ -1308,4 +1308,4 @@ POP_WARNING()

} // namespace Bluetooth

} // namespace WPEFramework
} // namespace Thunder
2 changes: 1 addition & 1 deletion Source/bluetooth/UUID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "UUID.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/UUID.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "Module.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/AVDTPProfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "Module.h"
#include "AVDTPProfile.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/AVDTPProfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "Module.h"
#include "AVDTPSocket.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/AVDTPSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "Module.h"
#include "AVDTPSocket.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/AVDTPSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "Module.h"
#include "DataRecord.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

cmake_minimum_required(VERSION 3.3)

find_package(WPEFramework)
find_package(Thunder)
find_package(${NAMESPACE}Core REQUIRED)
find_package(${NAMESPACE}Messaging REQUIRED)
find_package(CompileSettingsDebug CONFIG REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/DataRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <type_traits>


namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/IAudioCodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "Module.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/IAudioContentProtection.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "Module.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/RTPSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "Module.h"
#include "IAudioCodec.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/SDPProfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "SDPSocket.h"
#include "SDPProfile.h"

namespace WPEFramework {
namespace Thunder {

ENUM_CONVERSION_BEGIN(Bluetooth::SDP::ClassID::id)
{ Bluetooth::SDP::ClassID::Undefined, _TXT("(undefined)") },
Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/SDPProfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <set>


namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/SDPSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "Module.h"
#include "SDPSocket.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down
4 changes: 2 additions & 2 deletions Source/bluetooth/audio/SDPSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "Module.h"
#include "DataRecord.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down Expand Up @@ -910,4 +910,4 @@ namespace SDP {

} // namespace Bluetooth

} // namespace WPEFramework
} // namespace Thunder
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/codecs/SBC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <sbc/sbc.h>

namespace WPEFramework {
namespace Thunder {

ENUM_CONVERSION_BEGIN(Bluetooth::A2DP::SBC::preset)
{ Bluetooth::A2DP::SBC::COMPATIBLE, _TXT("Compatible") },
Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/codecs/SBC.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "../IAudioCodec.h"
#include "../DataRecord.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down
10 changes: 5 additions & 5 deletions Source/bluetooth/drivers/BCM43XX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <HCISocket.h>
#include <IDriver.h>

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down Expand Up @@ -372,22 +372,22 @@ namespace Bluetooth {
uint32_t _baudRate;
};
}
} // namespace WPEFramework::Bluetooth
} // namespace Thunder::Bluetooth


#ifdef __cplusplus
extern "C" {
#endif

WPEFramework::Bluetooth::Broadcom43XX* g_driver = nullptr;
Thunder::Bluetooth::Broadcom43XX* g_driver = nullptr;

const char* construct_bluetooth_driver(const char* input) {
const char* result = "Driver already loaded.";

if (g_driver == nullptr) {
WPEFramework::Bluetooth::Broadcom43XX::Config config;
Thunder::Bluetooth::Broadcom43XX::Config config;
config.FromString(input);
WPEFramework::Bluetooth::Broadcom43XX* driver = new WPEFramework::Bluetooth::Broadcom43XX(config);
Thunder::Bluetooth::Broadcom43XX* driver = new Thunder::Bluetooth::Broadcom43XX(config);


result = driver->Initialize();
Expand Down
6 changes: 3 additions & 3 deletions Source/bluetooth/drivers/SerialDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "../Module.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down Expand Up @@ -53,7 +53,7 @@ namespace Bluetooth {
public:
//
// Exchange holds a definitions of a request and a response for the communication with the
// HCI. See WPEFramework/Source/core/StreamTypeKeyValue.h for more details.
// HCI. See Thunder/Source/core/StreamTypeKeyValue.h for more details.
//
struct Exchange {

Expand Down Expand Up @@ -471,4 +471,4 @@ namespace Bluetooth {
Core::SerialPort::FlowControl _flowControl;
};
}
} // namespace WPEFramework::Bluetooth
} // namespace Thunder::Bluetooth
2 changes: 1 addition & 1 deletion Source/bluetooth/gatt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

cmake_minimum_required(VERSION 3.3)

find_package(WPEFramework)
find_package(Thunder)
find_package(${NAMESPACE}Core REQUIRED)
find_package(${NAMESPACE}Messaging REQUIRED)
find_package(CompileSettingsDebug CONFIG REQUIRED)
Expand Down
4 changes: 2 additions & 2 deletions Source/bluetooth/gatt/GATTProfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "GATTProfile.h"

namespace WPEFramework {
namespace Thunder {

ENUM_CONVERSION_BEGIN(Bluetooth::GATTProfile::Service::Characteristic::Descriptor::type)

Expand Down Expand Up @@ -322,5 +322,5 @@ ENUM_CONVERSION_BEGIN(Bluetooth::GATTProfile::Service::type)

ENUM_CONVERSION_END(Bluetooth::GATTProfile::Service::type)

} // namespace WPEFramework
} // namespace Thunder

4 changes: 2 additions & 2 deletions Source/bluetooth/gatt/GATTProfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "Module.h"
#include "GATTSocket.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down Expand Up @@ -879,5 +879,5 @@ namespace Bluetooth {

} // namespace Bluetooth

} // namespace WPEFramework
} // namespace Thunder

4 changes: 2 additions & 2 deletions Source/bluetooth/gatt/GATTSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "GATTSocket.h"

namespace WPEFramework {
namespace Thunder {

namespace Bluetooth {

Expand Down Expand Up @@ -353,4 +353,4 @@ bool GATTSocket::Security(const uint8_t level)

} // namespace Bluetooth

} // namespace WPEFramework
} // namespace Thunder
Loading

0 comments on commit c25061a

Please sign in to comment.