00001 00028 #ifndef CONSOLE_H 00029 #define CONSOLE_H 00030 00031 00032 typedef enum { 00033 CMD_DONE, 00034 CMD_INPROGRESS 00035 } cmd_state_t; 00036 00037 typedef cmd_state_t (*cmd_cb_t)(int argc, char* argv[], void* ctx); 00038 00039 void console_init(void); 00040 void console_init_silent(void); 00041 char* console_gets(void); 00042 int console_add_cmd(const char* str, cmd_cb_t cb, void* ctx); 00043 int console_schedule_cmd(char *cmd, int interactive); 00044 void console_poll(void); 00045 00046 #endif