(task_powerstate.c) Cleanup

This commit is contained in:
twinaphex 2016-12-20 21:46:12 +01:00
parent e23fe909dd
commit 76ada44fb0
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@
#include "../../frontend/frontend_driver.h" #include "../../frontend/frontend_driver.h"
#include "tasks_internal.h" #include "tasks_internal.h"
static int power_percent = 0; static int power_percent = 0;
static enum frontend_powerstate state = FRONTEND_POWERSTATE_NONE; static enum frontend_powerstate state = FRONTEND_POWERSTATE_NONE;
typedef struct typedef struct
@ -62,7 +62,7 @@ static void task_powerstate_handler(retro_task_t *task)
task->finished = true; 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)); retro_task_t *task = (retro_task_t*)calloc(1, sizeof(*task));
powerstate_t *state = (powerstate_t*)calloc(1, sizeof(*state)); powerstate_t *state = (powerstate_t*)calloc(1, sizeof(*state));

View File

@ -172,7 +172,7 @@ bool input_autoconfigure_connect(autoconfig_params_t *params);
bool input_autoconfigure_disconnect(unsigned i, const char *ident); 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); enum frontend_powerstate get_last_powerstate(int *percent);