Skip to content

Commit 4d4e935

Browse files
committed
RDKEMW-7722: Align PowerManager WakeupSrcConfiguration API's with SystemService plugin
1 parent 232b903 commit 4d4e935

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

apis/Ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ namespace Exchange {
172172
ID_POWER_MANAGER_NOTIFICATION_DEEP_SLEEP_TIMEOUT = ID_POWER_MANAGER + 4,
173173
ID_POWER_MANAGER_NOTIFICATION_NETWORK_STANDBY_MODE_CHANGED = ID_POWER_MANAGER + 5,
174174
ID_POWER_MANAGER_NOTIFICATION_THERMAL_MODE_CHANGED = ID_POWER_MANAGER + 6,
175+
ID_POWER_MANAGER_WAKEUP_SRC_ITERATOR = ID_POWER_MANAGER + 7,
175176

176177
ID_TEXT_TRACK = ID_ENTOS_OFFSET + 0x190,
177178
ID_TEXT_TRACK_CLOSED_CAPTIONS_STYLE = ID_TEXT_TRACK + 1,

apis/PowerManager/IPowerManager.h

100755100644
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
#include "Module.h"
2323

24+
// @stubgen:include <com/IIteratorType.h>
25+
2426
namespace WPEFramework
2527
{
2628
namespace Exchange
@@ -88,6 +90,13 @@ namespace WPEFramework
8890
SYSTEM_MODE_WAREHOUSE = 3 /* @text WAREHOUSE */
8991
};
9092

93+
struct WakeupSrcConfig {
94+
string wakeupSource;
95+
bool enabled;
96+
};
97+
98+
using IWakeupSrcConfigIterator = RPC::IIteratorType<WakeupSrcConfig, ID_POWER_MANAGER_WAKEUP_SRC_ITERATOR>;
99+
91100
// @event
92101
struct EXTERNAL IRebootNotification : virtual public Core::IUnknown
93102
{
@@ -290,6 +299,12 @@ namespace WPEFramework
290299
// @param config: config
291300
virtual Core::hresult SetWakeupSrcConfig(const int powerMode /* @in */, const int wakeSrcType /* @in */, int config /* @in */ ) = 0;
292301

302+
/** Set Wakeup source configuration - Legacy way */
303+
// @text setWakeupSourceConfig
304+
// @brief Set the source configuration for device wakeup
305+
// @param wakeupSources: Wake up sources array
306+
virtual Core::hresult SetWakeupSourceConfig(IWakeupSrcConfigIterator* wakeupSources /* @in */ ) = 0;
307+
293308
/** Get Wakeup source configuration */
294309
// @text getWakeupSrcConfig
295310
// @brief Get the source configuration for device wakeup
@@ -298,6 +313,12 @@ namespace WPEFramework
298313
// @param config: config
299314
virtual Core::hresult GetWakeupSrcConfig(int &powerMode /* @out */, int &srcType /* @out */, int &config /* @out */) const = 0;
300315

316+
/** Get Wakeup source configuration - legacy way */
317+
// @text getWakeupSourceConfig
318+
// @brief Get the source configuration for device wakeup
319+
// @param wakeupSources: Wake up sources array
320+
virtual Core::hresult GetWakeupSourceConfig(IWakeupSrcConfigIterator*& wakeupSources /* @out */) const = 0;
321+
301322
/** Initiate System mode change */
302323
// @text setSystemMode
303324
// @brief System mode change

0 commit comments

Comments
 (0)