21
21
22
22
#include " Module.h"
23
23
24
+ // @stubgen:include <com/IIteratorType.h>
25
+
24
26
namespace WPEFramework
25
27
{
26
28
namespace Exchange
@@ -88,6 +90,13 @@ namespace WPEFramework
88
90
SYSTEM_MODE_WAREHOUSE = 3 /* @text WAREHOUSE */
89
91
};
90
92
93
+ struct WakeupSrcConfig {
94
+ string wakeupSource;
95
+ bool enabled;
96
+ };
97
+
98
+ using IWakeupSrcConfigIterator = RPC::IIteratorType<WakeupSrcConfig, ID_POWER_MANAGER_WAKEUP_SRC_ITERATOR>;
99
+
91
100
// @event
92
101
struct EXTERNAL IRebootNotification : virtual public Core::IUnknown
93
102
{
@@ -290,6 +299,12 @@ namespace WPEFramework
290
299
// @param config: config
291
300
virtual Core::hresult SetWakeupSrcConfig (const int powerMode /* @in */ , const int wakeSrcType /* @in */ , int config /* @in */ ) = 0;
292
301
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
+
293
308
/* * Get Wakeup source configuration */
294
309
// @text getWakeupSrcConfig
295
310
// @brief Get the source configuration for device wakeup
@@ -298,6 +313,12 @@ namespace WPEFramework
298
313
// @param config: config
299
314
virtual Core::hresult GetWakeupSrcConfig (int &powerMode /* @out */ , int &srcType /* @out */ , int &config /* @out */ ) const = 0;
300
315
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
+
301
322
/* * Initiate System mode change */
302
323
// @text setSystemMode
303
324
// @brief System mode change
0 commit comments