Skip to content

Commit

Permalink
RDK-45352 RDK-45346: Update rdkservices plugins to be compatible for …
Browse files Browse the repository at this point in the history
…Thunder R4.4.1 (rdkcentral#5118)

* DK-45352 RDK-45346: Upgrade SkyXione-LLAMA & Xumo devices to use Thunder R4.4.1

Reason for change: Updated LocalDispatcher correctly for Invoke method
Test Procedure: Verify in Jenkin Build
Risks: High
Signed-off-by: Thamim Razith [email protected]

 Updated:   SystemServices/platformcaps/platformcapsdata.h

* Update platformcapsdata.h

---------

Co-authored-by: Karunakaran A <[email protected]>
  • Loading branch information
tabbas651 and karuna2git authored Apr 4, 2024
1 parent 1e2fc60 commit 87c498d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SystemServices/platformcaps/platformcapsdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class PlatformCapsData {
{
if (service)
#if ((THUNDER_VERSION >= 4) && (THUNDER_VERSION_MINOR == 4))
dispatcher_ = service->QueryInterfaceByCallsign<PluginHost::IDispatcher>(mCallSign);
dispatcher_ = service->QueryInterfaceByCallsign<PluginHost::ILocalDispatcher>(mCallSign);
#else
dispatcher_ = service->QueryInterfaceByCallsign<PluginHost::IDispatcher>(mCallSign);
#endif
Expand Down Expand Up @@ -198,11 +198,11 @@ class PlatformCapsData {
resp->Error.Text = output;
}
}
#elif (THUNDER_VERSION == 2)
auto resp = dispatcher_->Invoke("", channelId, *message);
#else
#elif ((THUNDER_VERSION >= 4) && (THUNDER_VERSION_MINOR == 2))
Core::JSONRPC::Context context(channelId, message->Id.Value(), "");
auto resp = dispatcher_->Invoke(context, *message);
#else
auto resp = dispatcher_->Invoke("", channelId, *message);
#endif
if (resp->Error.IsSet()) {
std::cout << "Call failed: " << message->Designator.Value() << " error: " << resp->Error.Text.Value() << "\n";
Expand Down

0 comments on commit 87c498d

Please sign in to comment.