mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
28 lines
630 B
C
28 lines
630 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;
|
|
|
|
/// Initialize bpc.
|
|
Result bpcInitialize(void);
|
|
|
|
/// Exit bpc.
|
|
void bpcExit(void);
|
|
|
|
/// Gets the Service object for the actual bpc service session.
|
|
Service* bpcGetServiceSession(void);
|
|
|
|
Result bpcShutdownSystem(void);
|
|
Result bpcRebootSystem(void);
|
|
Result bpcGetSleepButtonState(BpcSleepButtonState *out); ///< [2.0.0+]
|