mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-12 05:40:36 +00:00
(task_powerstate.c) Cleanup
This commit is contained in:
parent
e23fe909dd
commit
76ada44fb0
@ -19,7 +19,7 @@
|
||||
#include "../../frontend/frontend_driver.h"
|
||||
#include "tasks_internal.h"
|
||||
|
||||
static int power_percent = 0;
|
||||
static int power_percent = 0;
|
||||
static enum frontend_powerstate state = FRONTEND_POWERSTATE_NONE;
|
||||
|
||||
typedef struct
|
||||
@ -62,7 +62,7 @@ static void task_powerstate_handler(retro_task_t *task)
|
||||
task->finished = true;
|
||||
}
|
||||
|
||||
void task_push_get_powerstate()
|
||||
void task_push_get_powerstate(void)
|
||||
{
|
||||
retro_task_t *task = (retro_task_t*)calloc(1, sizeof(*task));
|
||||
powerstate_t *state = (powerstate_t*)calloc(1, sizeof(*state));
|
||||
|
@ -172,7 +172,7 @@ bool input_autoconfigure_connect(autoconfig_params_t *params);
|
||||
|
||||
bool input_autoconfigure_disconnect(unsigned i, const char *ident);
|
||||
|
||||
void task_push_get_powerstate();
|
||||
void task_push_get_powerstate(void);
|
||||
|
||||
enum frontend_powerstate get_last_powerstate(int *percent);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user