From 9cc6aead841af2063212d5473fc7361ff96acc57 Mon Sep 17 00:00:00 2001 From: James Benton Date: Sun, 17 Jun 2018 21:02:35 +0100 Subject: [PATCH] coreinit: Add remaining IM* functions. --- include/coreinit/energysaver.h | 54 +++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 14 deletions(-) diff --git a/include/coreinit/energysaver.h b/include/coreinit/energysaver.h index 2986c92..5cb26c3 100644 --- a/include/coreinit/energysaver.h +++ b/include/coreinit/energysaver.h @@ -11,26 +11,52 @@ extern "C" { #endif -int32_t -IMEnableDim(void); +typedef int32_t IMError; -int32_t -IMDisableDim(void); +IMError +IMDisableAPD(); -int32_t -IMIsDimEnabled(int32_t * result); +IMError +IMDisableDim(); -int32_t -IMEnableAPD(void); +IMError +IMEnableAPD(); -int32_t -IMDisableAPD(void); +IMError +IMEnableDim(); -int32_t -IMIsAPDEnabled(int32_t * result); +IMError +IMIsAPDEnabled(uint32_t *outValue); -int32_t -IMIsAPDEnabledBySysSettings(int32_t * result); +IMError +IMIsAPDEnabledBySysSettings(uint32_t *outValue); + +IMError +IMIsDimEnabled(uint32_t *outValue); + +IMError +IMGetDimEnableDrc(uint32_t *outValue); + +IMError +IMGetDimEnableTv(uint32_t *outValue); + +IMError +IMGetDimPeriod(uint32_t *outValue); + +IMError +IMGetTimeBeforeAPD(uint32_t *outSeconds); + +IMError +IMGetTimeBeforeDimming(uint32_t *outSeconds); + +IMError +IMSetDimEnableDrc(BOOL value); + +IMError +IMSetDimEnableTv(BOOL value); + +IMError +IMStartAPDVideoMode(); #ifdef __cplusplus }