Skip to content

Commit 9854beb

Browse files
RDK-57093: Update Plugin Clients to use update Power manager interface (#39)
1 parent ac5ef43 commit 9854beb

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

HdmiCecSink/HdmiCecSink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ namespace WPEFramework
933933
}
934934
}
935935

936-
void HdmiCecSink::onPowerModeChanged(const PowerState &currentState, const PowerState &newState)
936+
void HdmiCecSink::onPowerModeChanged(const PowerState currentState, const PowerState newState)
937937
{
938938
if(!HdmiCecSink::_instance)
939939
return;

HdmiCecSink/HdmiCecSink.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,8 @@ namespace WPEFramework {
573573
void sendKeyReleaseEvent(const int logicalAddress);
574574
void sendUserControlPressed(const int logicalAddress, int keyCode);
575575
void sendUserControlReleased(const int logicalAddress);
576-
void onPowerModeChanged(const PowerState &currentState, const PowerState &newState);
576+
void sendGiveAudioStatusMsg();
577+
void onPowerModeChanged(const PowerState currentState, const PowerState newState);
577578
void registerEventHandlers();
578579
void sendGiveAudioStatusMsg();
579580
void getHdmiArcPortID();
@@ -599,7 +600,7 @@ namespace WPEFramework {
599600
~PowerManagerNotification() override = default;
600601

601602
public:
602-
void OnPowerModeChanged(const PowerState &currentState, const PowerState &newState) override
603+
void OnPowerModeChanged(const PowerState currentState, const PowerState newState) override
603604
{
604605
_parent.onPowerModeChanged(currentState, newState);
605606
}

HdmiCecSource/HdmiCecSourceImplementation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ namespace WPEFramework
779779
}
780780
}
781781

782-
void HdmiCecSourceImplementation::onPowerModeChanged(const PowerState &currentState, const PowerState &newState)
782+
void HdmiCecSourceImplementation::onPowerModeChanged(const PowerState currentState, const PowerState newState)
783783
{
784784
if(!HdmiCecSourceImplementation::_instance)
785785
return;

HdmiCecSource/HdmiCecSourceImplementation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ namespace WPEFramework {
196196
public:
197197
HdmiCecSourceImplementation();
198198
virtual ~HdmiCecSourceImplementation();
199-
void onPowerModeChanged(const PowerState &currentState, const PowerState &newState);
199+
void onPowerModeChanged(const PowerState currentState, const PowerState newState);
200200
void registerEventHandlers();
201201
static HdmiCecSourceImplementation* _instance;
202202
CECDeviceInfo_2 deviceList[16];
@@ -239,7 +239,7 @@ namespace WPEFramework {
239239
~PowerManagerNotification() override = default;
240240

241241
public:
242-
void OnPowerModeChanged(const PowerState &currentState, const PowerState &newState) override
242+
void OnPowerModeChanged(const PowerState currentState, const PowerState newState) override
243243
{
244244
_parent.onPowerModeChanged(currentState, newState);
245245
}

0 commit comments

Comments
 (0)