Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apis/Ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ namespace Exchange {
ID_POWER_MANAGER_NOTIFICATION_DEEP_SLEEP_TIMEOUT = ID_POWER_MANAGER + 4,
ID_POWER_MANAGER_NOTIFICATION_NETWORK_STANDBY_MODE_CHANGED = ID_POWER_MANAGER + 5,
ID_POWER_MANAGER_NOTIFICATION_THERMAL_MODE_CHANGED = ID_POWER_MANAGER + 6,
ID_POWER_MANAGER_WAKEUP_SRC_ITERATOR = ID_POWER_MANAGER + 7,

ID_TEXT_TRACK = ID_ENTOS_OFFSET + 0x190,
ID_TEXT_TRACK_CLOSED_CAPTIONS_STYLE = ID_TEXT_TRACK + 1,
Expand Down
25 changes: 15 additions & 10 deletions apis/PowerManager/IPowerManager.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Copyright 2024 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");

Check failure on line 7 in apis/PowerManager/IPowerManager.h

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'apis/PowerManager/IPowerManager.h' (Match: peridyno/peridyno/0.4.0, 15 lines, url: https://github.com/peridyno/peridyno/archive/refs/tags/v0.4.0.tar.gz, file: src/Framework/Module/Pipeline.h)
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
Expand All @@ -21,6 +21,8 @@

#include "Module.h"

// @stubgen:include <com/IIteratorType.h>

namespace WPEFramework
{
namespace Exchange
Expand Down Expand Up @@ -88,6 +90,13 @@
SYSTEM_MODE_WAREHOUSE = 3 /* @text WAREHOUSE */
};

struct WakeupSrcConfig {
WakeupSrcType wakeupSource;
bool enabled;
};

using IWakeupSrcConfigIterator = RPC::IIteratorType<WakeupSrcConfig, ID_POWER_MANAGER_WAKEUP_SRC_ITERATOR>;

// @event
struct EXTERNAL IRebootNotification : virtual public Core::IUnknown
{
Expand Down Expand Up @@ -283,20 +292,16 @@
virtual Core::hresult GetNetworkStandbyMode(bool &standbyMode /* @out */) = 0;

/** Set Wakeup source configuration */
// @text setWakeupSrcConfig
// @text setWakeupSourceConfig
// @brief Set the source configuration for device wakeup
// @param powerMode: power mode
// @param wakeSrcType: source type
// @param config: config
virtual Core::hresult SetWakeupSrcConfig(const int powerMode /* @in */, const int wakeSrcType /* @in */, int config /* @in */ ) = 0;
// @param wakeupSources: Wake up sources array
virtual Core::hresult SetWakeupSourceConfig(IWakeupSrcConfigIterator* wakeupSources /* @in */ ) = 0;

/** Get Wakeup source configuration */
// @text getWakeupSrcConfig
// @text getWakeupSourceConfig
// @brief Get the source configuration for device wakeup
// @param powerMode: power mode
// @param srcType: source type
// @param config: config
virtual Core::hresult GetWakeupSrcConfig(int &powerMode /* @out */, int &srcType /* @out */, int &config /* @out */) const = 0;
// @param wakeupSources: Wake up sources array
virtual Core::hresult GetWakeupSourceConfig(IWakeupSrcConfigIterator*& wakeupSources /* @out */) const = 0;

/** Initiate System mode change */
// @text setSystemMode
Expand Down
Loading
Loading