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
12 changes: 12 additions & 0 deletions apis/PowerManager/IPowerManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ namespace WPEFramework
bool enabled;
};

struct EXTERNAL TimeSinceWakeup {
uint32_t secondsSinceWakeup /* @brief Wakeup time in seconds */;
};

using IWakeupSourceConfigIterator = RPC::IIteratorType<WakeupSourceConfig, ID_POWER_MANAGER_WAKEUP_SRC_ITERATOR>;

// @event
Expand Down Expand Up @@ -322,6 +326,14 @@ namespace WPEFramework
// @param transactionId: transaction id as received in OnPowerModePreChange
// @param delayPeriod: delay in seconds
virtual Core::hresult DelayPowerModeChangeBy(const uint32_t clientId , const int transactionId , const int delayPeriod ) = 0;

/** Get the Wakeup Time */
// @text getTimeSinceWakeup
// @brief Get the Wakeup Time
// @param timeSinceWakeup: Wakeup time in seconds
// @retval ErrorCode::ERROR_NONE: Indicates success
// @retval ErrorCode::ERROR_GENERAL: Indicates failure
virtual Core::hresult GetTimeSinceWakeup(TimeSinceWakeup &timeSinceWakeup /* @out */) = 0;
};

} // namespace Exchange
Expand Down
Loading
Loading