57 lines
1.2 KiB
JSON
57 lines
1.2 KiB
JSON
{
|
|
"header": "SDL_power.h",
|
|
"opaque_types": [],
|
|
"typedefs": [],
|
|
"function_pointers": [],
|
|
"c_type_aliases": [],
|
|
"enums": [
|
|
{
|
|
"name": "SDL_PowerState",
|
|
"values": [
|
|
{
|
|
"name": "SDL_POWERSTATE_ERROR",
|
|
"value": "-1",
|
|
"comment": "error determining power status"
|
|
},
|
|
{
|
|
"name": "SDL_POWERSTATE_UNKNOWN",
|
|
"comment": "cannot determine power status"
|
|
},
|
|
{
|
|
"name": "SDL_POWERSTATE_ON_BATTERY",
|
|
"comment": "Not plugged in, running on the battery"
|
|
},
|
|
{
|
|
"name": "SDL_POWERSTATE_NO_BATTERY",
|
|
"comment": "Plugged in, no battery available"
|
|
},
|
|
{
|
|
"name": "SDL_POWERSTATE_CHARGING",
|
|
"comment": "Plugged in, charging battery"
|
|
},
|
|
{
|
|
"name": "SDL_POWERSTATE_CHARGED"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"structs": [],
|
|
"unions": [],
|
|
"flags": [],
|
|
"functions": [
|
|
{
|
|
"name": "SDL_GetPowerInfo",
|
|
"return_type": "SDL_PowerState",
|
|
"parameters": [
|
|
{
|
|
"name": "seconds",
|
|
"type": "int *"
|
|
},
|
|
{
|
|
"name": "percent",
|
|
"type": "int *"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |