-
Notifications
You must be signed in to change notification settings - Fork 2
RDKEMW-11483: Fix the EntServices-peripherals to support R5.3 #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| /** | ||
|
Check failure on line 1 in LEDControl/Module.h
|
||
| * If not stated otherwise in this file or this component's LICENSE | ||
| * file the following copyright and licenses apply: | ||
| * | ||
|
|
@@ -22,8 +22,8 @@ | |
| #define MODULE_NAME Plugin_LEDControl | ||
| #endif | ||
|
|
||
| #include <core/core.h> | ||
| #include <plugins/plugins.h> | ||
| #include <tracing/tracing.h> | ||
|
|
||
| #undef EXTERNAL | ||
| #define EXTERNAL | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| /** | ||
|
Check failure on line 1 in MotionDetection/Module.h
|
||
| * If not stated otherwise in this file or this component's LICENSE | ||
| * file the following copyright and licenses apply: | ||
| * | ||
|
|
@@ -24,8 +24,8 @@ | |
| #define MODULE_NAME Plugin_MotionDetection | ||
| #endif | ||
|
|
||
| #include <core/core.h> | ||
| #include <plugins/plugins.h> | ||
| #include <tracing/tracing.h> | ||
|
|
||
| #undef EXTERNAL | ||
| #define EXTERNAL | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| /** | ||
|
Check failure on line 1 in RemoteControl/Module.h
|
||
| * If not stated otherwise in this file or this component's LICENSE | ||
| * file the following copyright and licenses apply: | ||
| * | ||
|
|
@@ -22,8 +22,8 @@ | |
| #define MODULE_NAME RemoteControl | ||
| #endif | ||
|
|
||
| #include <core/core.h> | ||
| #include <plugins/plugins.h> | ||
| #include <tracing/tracing.h> | ||
|
|
||
| #undef EXTERNAL | ||
| #define EXTERNAL | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| /** | ||
|
Check failure on line 1 in VoiceControl/Module.h
|
||
| * If not stated otherwise in this file or this component's LICENSE | ||
| * file the following copyright and licenses apply: | ||
| * | ||
|
|
@@ -22,8 +22,8 @@ | |
| #define MODULE_NAME VoiceControl | ||
| #endif | ||
|
|
||
| #include <core/core.h> | ||
| #include <plugins/plugins.h> | ||
| #include <tracing/tracing.h> | ||
|
|
||
| #undef EXTERNAL | ||
| #define EXTERNAL | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| /** | ||
|
Check failure on line 1 in helpers/UtilsController.h
|
||
| * If not stated otherwise in this file or this component's LICENSE | ||
| * file the following copyright and licenses apply: | ||
| * | ||
|
|
@@ -158,11 +158,7 @@ | |
| return thunderClient; | ||
| } | ||
|
|
||
| #ifndef USE_THUNDER_R4 | ||
| class Job : public Core::IDispatchType<void> | ||
| #else | ||
| class Job : public Core::IDispatch | ||
| #endif /* USE_THUNDER_R4 */ | ||
| { | ||
| public: | ||
| Job(std::function<void()> work) | ||
|
|
@@ -202,13 +198,8 @@ | |
| uint32_t result = Core::ERROR_ASYNC_FAILED; | ||
| Core::Event event(false, true); | ||
|
|
||
| #ifndef USE_THUNDER_R4 | ||
| Core::IWorkerPool::Instance().Submit(Core::ProxyType<Core::IDispatchType<void>>(Core::ProxyType<Job>::Create([&]() | ||
| { | ||
| #else | ||
| Core::IWorkerPool::Instance().Submit(Core::ProxyType<Core::IDispatch>(Core::ProxyType<Job>::Create([&]() | ||
| { | ||
| #endif /* USE_THUNDER_R4 */ | ||
| auto interface = shell->QueryInterfaceByCallsign<PluginHost::IShell>(callsign); | ||
| if (interface == nullptr) { | ||
| result = Core::ERROR_UNAVAILABLE; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ | |
| * limitations under the License. | ||
| **/ | ||
|
|
||
| #pragma once | ||
|
Check failure on line 20 in helpers/UtilsJsonRpc.h
|
||
|
|
||
| #include "UtilsLogging.h" | ||
|
|
||
|
|
@@ -69,8 +69,6 @@ | |
| * You should be capable of just using "Notify". | ||
| */ | ||
|
|
||
| #if ((THUNDER_VERSION >= 4) && (THUNDER_VERSION_MINOR == 4)) | ||
|
|
||
| #define sendNotify(event,params) { \ | ||
| std::string json; \ | ||
| params.ToString(json); \ | ||
|
|
@@ -85,22 +83,6 @@ | |
| Notify(event,params); \ | ||
| } | ||
|
|
||
| #else | ||
|
|
||
| #define sendNotify(event,params) { \ | ||
| std::string json; \ | ||
| params.ToString(json); \ | ||
| LOGINFO("Notify %s %s", event, json.c_str()); \ | ||
| for (uint8_t i = 1; GetHandler(i); i++) GetHandler(i)->Notify(event,params); \ | ||
| } | ||
| #define sendNotifyMaskParameters(event,params) { \ | ||
| std::string json; \ | ||
| params.ToString(json); \ | ||
| LOGINFO("Notify %s <***>", event); \ | ||
| for (uint8_t i = 1; GetHandler(i); i++) GetHandler(i)->Notify(event,params); \ | ||
| } | ||
|
|
||
| #endif | ||
| /** | ||
| * DO NOT USE THIS. | ||
| * | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
find_package(Thunder)hardcodes the framework name, which goes against the repo convention of using the${NAMESPACE}variable for CMakefind_package/targets to keep WPEFramework↔Thunder transitions smooth. Consider settingNAMESPACEas a cache variable (defaulting toThunder) and callingfind_package(${NAMESPACE} REQUIRED)so downstream builds can override it without editing this file.Refer: https://github.com/rdkcentral/entservices-peripherals/blob/develop/.github/instructions/Plugincmake.instructions.md#namespace-usage