libnx/nx/include/switch/services/bpc.h
2019-10-20 01:11:26 +02:00

23 lines
516 B
C

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