CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/Common/Battery/Battery.h
Views: 1401
1
//
2
// Battery.h
3
// PPSSPP
4
//
5
// Created by Serena on 24/01/2023.
6
//
7
8
// NOTE: Though this is a general purpose header file,
9
// though the implementation right now is Darwin specific
10
// In case any future platform implementations are made for other platforms,
11
// define the function below in their own file
12
13
#ifndef BATTERY_H
14
#define BATTERY_H
15
#include "ppsspp_config.h"
16
//#include <Foundation/Foundation.h>
17
18
#ifdef __cplusplus
19
extern "C" {
20
#endif
21
22
#if PPSSPP_PLATFORM(IOS) || PPSSPP_PLATFORM(MAC)
23
#define CAN_DISPLAY_CURRENT_BATTERY_CAPACITY
24
/// Get the current battery %.
25
int getCurrentBatteryCapacity();
26
#endif /* PPSSPP_PLATFORM(IOS) || PPSSPP_PLATFORM(MAC) */
27
28
#ifdef __cplusplus
29
}
30
#endif
31
32
#endif /* BATTERY_H */
33
34