* Removed string limit on cli prompt and cli mode name

This commit is contained in:
Olof hagsand 2020-10-18 16:24:11 +02:00
parent f07f291bdd
commit e176330a74
4 changed files with 152 additions and 145 deletions

View file

@ -47,11 +47,11 @@ typedef void (clicon_callback_t)(clicon_handle h);
/* List of syntax modes */
typedef struct {
qelem_t csm_qelem; /* List header */
char csm_name[256]; /* Syntax mode name */
char csm_prompt[CLI_PROMPT_LEN]; /* Prompt for mode */
qelem_t csm_qelem; /* List header */
char *csm_name; /* Syntax mode name */
char *csm_prompt; /* Prompt for mode */
int csm_nsyntax; /* Num syntax specs registered by plugin */
parse_tree *csm_pt; /* CLIgen parse tree */
parse_tree *csm_pt; /* CLIgen parse tree */
} cli_syntaxmode_t;
/* Plugin group object. Just a single object, not list. part of cli_handle */