13 task->transient =
transient;
51 }
else if (argc == 2) {
68 return rz_cmd_int2status(
task_break(core, tid));
static int task_break(RzCore *core, int tid)
RZ_IPI RzCmdStatus rz_tasks_delete_all_handler(RzCore *core, int argc, const char **argv)
RZ_IPI RzCmdStatus rz_tasks_output_handler(RzCore *core, int argc, const char **argv)
RZ_IPI RzCmdStatus rz_tasks_handler(RzCore *core, int argc, const char **argv, RzOutputMode mode)
RZ_IPI RzCmdStatus rz_tasks_break_handler(RzCore *core, int argc, const char **argv)
RZ_IPI RzCmdStatus rz_tasks_delete_handler(RzCore *core, int argc, const char **argv)
static int task_output(RzCore *core, int tid)
static int task_enqueue(RzCore *core, const char *cmd, bool transient)
RZ_IPI RzCmdStatus rz_tasks_transient_handler(RzCore *core, int argc, const char **argv)
RZ_IPI RzCmdStatus rz_tasks_wait_handler(RzCore *core, int argc, const char **argv)
RZ_API void rz_cons_println(const char *str)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags cmd
static static fork const void static count static fd const char const char static newpath char char argv
enum rz_cmd_status_t RzCmdStatus
@ RZ_CMD_STATUS_OK
command handler exited in the right way
@ RZ_CMD_STATUS_ERROR
command handler had issues while running (e.g. allocation error, etc.)
struct rz_core_task_t RzCoreTask
RZ_API ut64 rz_num_math(RzNum *num, const char *str)
RzOutputMode
Enum to describe the way data are printed.
@ RZ_OUTPUT_MODE_STANDARD
RzCoreTaskScheduler tasks
struct rz_core_task_t * current_task
RZ_API bool rz_core_task_is_cmd(RzCore *core, int id)
RZ_API void rz_core_task_join(RzCoreTaskScheduler *scheduler, RzCoreTask *current, int id)
RZ_API void rz_core_task_decref(RzCoreTask *task)
RZ_API int rz_core_task_del(RzCoreTaskScheduler *scheduler, int id)
RZ_API void rz_core_task_del_all_done(RzCore *core)
RZ_API void rz_core_task_enqueue(RzCoreTaskScheduler *scheduler, RzCoreTask *task)
RZ_API RzCoreTask * rz_core_task_get_incref(RzCoreTaskScheduler *scheduler, int id)
RZ_API RzCoreTask * rz_core_cmd_task_new(RzCore *core, const char *cmd, RzCoreCmdTaskFinished finished_cb, void *finished_cb_user)
RZ_API void rz_core_task_list(RzCore *core, int mode)
RZ_API const char * rz_core_cmd_task_get_result(RzCoreTask *task)
RZ_API void rz_core_task_break(RzCoreTaskScheduler *scheduler, int id)