27 #ifndef __APPS_INCLUDE_SHELL_TASH_H 28 #define __APPS_INCLUDE_SHELL_TASH_H 30 #include <tinyara/config.h> 38 #define TASH_EXECMD_SYNC (0) 39 #define TASH_EXECMD_ASYNC (1) 45 typedef int (*TASH_CMD_CALLBACK)(
int argc,
char **args);
52 struct tash_cmdlist_s {
54 const TASH_CMD_CALLBACK cb;
55 const int thread_exec;
57 typedef struct tash_cmdlist_s tash_cmdlist_t;
63 struct tash_taskinfo_s {
66 const int task_stacksize;
68 typedef struct tash_taskinfo_s tash_taskinfo_t;
80 int tash_cmd_install(
const char *str, TASH_CMD_CALLBACK cb,
int thread_exec);
89 void tash_cmdlist_install(
const tash_cmdlist_t list[]);
101 #if defined(CONFIG_TASH_COMMAND_INTERFACE) 108 int tash_get_cmdscount(
void);
125 int tash_get_cmdpair(
char *str, TASH_CMD_CALLBACK *cb,
int index);