#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "CLI/CLI_pubdefs.h"
#include "CLI_prvdefs.h"
Typedefs | |
typedef enum _CLI_Mode | CLI_Mode |
Typedef for enum _CLI_Mode. | |
Enumerations | |
enum | _CLI_Mode { CLI_MD_VERB, CLI_MD_QUAL, CLI_MD_PVAL, CLI_MD_QVAL } |
Parsing mode. More... | |
Functions | |
unsigned int | CLI_saveVerb (char *, char *, CLI_Control *, CLI_VerbDef **) |
Validate and save a verb. More... | |
unsigned int | CLI_saveQual (char *, char *, CLI_VerbDef *, CLI_Qual *, CLI_Qual **, CLI_QualDef **) |
Validate and save a qualifier. More... | |
unsigned int | CLI_savePval (char *, char *, CLI_ParmDef *, CLI_Parm **) |
Validate and save a parameter value. More... | |
unsigned int | CLI_saveQval (char *, char *, CLI_Qual *, CLI_QualDef *) |
Validate and save a qualifier value. More... | |
unsigned int | CLI_saveRest (char *, CLI_Parm **) |
Save the rest of the line as a single parameter. More... | |
unsigned int | CLI_dispatch (CLI_Control *, void *) |
Dispatch a CLI command. More... | |
unsigned int | CLI_parse (const char *ilin, CLI_Control *ctl, void *user) |
Parse a command line with the given syntax. More... |
CLI_parse.c parses the input line according to the provided syntax.
|
Parsing mode.
|
|
Dispatch a CLI command.
|
|
Parse a command line with the given syntax.
|
|
Validate and save a parameter value.
|
|
Validate and save a qualifier.
|
|
Validate and save a qualifier value.
|
|
Save the rest of the line as a single parameter.
|
|
Validate and save a verb.
|