mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Add task_ctl
This commit is contained in:
parent
dbff4e52bc
commit
ebcae85452
@ -428,3 +428,15 @@ bool rarch_task_find(rarch_task_finder_t func, void *user_data)
|
|||||||
{
|
{
|
||||||
return impl_current->find(func, 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;
|
||||||
|
}
|
||||||
|
@ -25,6 +25,11 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
enum task_ctl_state
|
||||||
|
{
|
||||||
|
TASK_CTL_NONE = 0
|
||||||
|
};
|
||||||
|
|
||||||
typedef struct rarch_task rarch_task_t;
|
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_callback_t)(void *task_data, void *user_data, const char *error);
|
||||||
typedef void (*rarch_task_handler_t)(rarch_task_t *task);
|
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,
|
bool persist, enum rarch_core_type type,
|
||||||
rarch_task_callback_t cb, void *user_data);
|
rarch_task_callback_t cb, void *user_data);
|
||||||
|
|
||||||
|
bool task_ctl(enum task_ctl_state state, void *data);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user