libnx/nx/include/switch/services/bpc.h
2018-11-14 19:52:40 -05:00

21 lines
452 B
C

/**
* @file bpc.h
* @brief Board power control (bpc) service IPC wrapper.
* @author XorTroll, SciresM
* @copyright libnx Authors
*/
#pragma once
#include "../types.h"
typedef enum {
BpcSleepButtonState_Held = 0,
BpcSleepButtonState_Released = 1,
} BpcSleepButtonState;
Result bpcInitialize(void);
void bpcExit(void);
Result bpcShutdownSystem(void);
Result bpcRebootSystem(void);
Result bpcGetSleepButtonState(BpcSleepButtonState *out);