Add task_ctl

This commit is contained in:
twinaphex 2016-01-28 09:35:25 +01:00
parent dbff4e52bc
commit ebcae85452
2 changed files with 19 additions and 0 deletions

View File

@ -428,3 +428,15 @@ bool rarch_task_find(rarch_task_finder_t func, void *user_data)
{
return impl_current->find(func, user_data);
}
bool task_ctl(enum task_ctl_state state, void *data)
{
switch (state)
{
case TASK_CTL_NONE:
default:
break;
}
return true;
}

View File

@ -25,6 +25,11 @@
extern "C" {
#endif
enum task_ctl_state
{
TASK_CTL_NONE = 0
};
typedef struct rarch_task rarch_task_t;
typedef void (*rarch_task_callback_t)(void *task_data, void *user_data, const char *error);
typedef void (*rarch_task_handler_t)(rarch_task_t *task);
@ -171,6 +176,8 @@ bool rarch_task_push_content_load_default(
bool persist, enum rarch_core_type type,
rarch_task_callback_t cb, void *user_data);
bool task_ctl(enum task_ctl_state state, void *data);
#ifdef __cplusplus
}
#endif