#include "macros.h"
Go to the source code of this file.
Data Structures | |
struct | cmd_prompt_s |
struct | command_s |
Defines | |
#define | CMDLINE_SIZE 80 |
Typedefs | |
typedef struct cmd_prompt_s | cmd_prompt_t |
typedef cmd_prompt_t * | cmd_prompt_p |
typedef struct command_s | command_t |
typedef command_t * | command_p |
Functions | |
int | cmd_prompt_Destroy (cmd_prompt_p cmd_prompt) |
cmd_prompt_p | cmd_prompt_Initialize (struct mc_platform_s *mc_platform) |
void | cmd_prompt_Start (struct mc_platform_s *mc_platform) |
int | split_string (char ***args, const char *buf) |
int | process_command (command_t *cmd) |
void * | cmd_prompt_Thread (void *arg) |
int | exec_command (command_t cmd, struct mc_platform_s *global) |
int | dealloc_command (command_t *cmd) |
#define CMDLINE_SIZE 80 |
Definition at line 37 of file cmd_prompt.h.
typedef cmd_prompt_t* cmd_prompt_p |
Definition at line 44 of file cmd_prompt.h.
typedef struct cmd_prompt_s cmd_prompt_t |
Definition at line 51 of file cmd_prompt.h.
int cmd_prompt_Destroy | ( | cmd_prompt_p | cmd_prompt | ) |
Definition at line 129 of file cmd_prompt.c.
References MC_SUCCESS.
Referenced by mc_platform_Destroy().
cmd_prompt_p cmd_prompt_Initialize | ( | struct mc_platform_s * | mc_platform | ) |
void cmd_prompt_Start | ( | struct mc_platform_s * | mc_platform | ) |
void* cmd_prompt_Thread | ( | void * | arg | ) |
Definition at line 168 of file cmd_prompt.c.
References command_s::args, buf, dealloc_command(), exec_command(), command_s::index, mc_platform, command_s::num_args, process_command(), and split_string().
Referenced by cmd_prompt_Start().
Definition at line 317 of file cmd_prompt.c.
References command_s::args, and command_s::num_args.
Referenced by cmd_prompt_Thread().
int exec_command | ( | command_t | cmd, | |
struct mc_platform_s * | global | |||
) |
Definition at line 283 of file cmd_prompt.c.
References command_s::args, command_cmds, command_s::index, and command_s::num_args.
Referenced by cmd_prompt_Thread().
int split_string | ( | char *** | args, | |
const char * | buf | |||
) |