|
CNDP 22.08.0
|
Go to the source code of this file.
Enumerations | |
| enum | { } |
Functions | |
| CNDP_API struct cli_hist * | cli_hist_alloc (void) |
| CNDP_API void | cli_hist_free (struct cli_hist *hist) |
| CNDP_API void | cli_history_add (char *line) |
| CNDP_API void | cli_history_del (void) |
| CNDP_API char * | cli_history_line (int lineno) |
| void | cli_history_clear (void) |
| CNDP_API void | cli_history_delete (void) |
| CNDP_API int | cli_set_history (uint32_t nb_hist) |
| CNDP_API char * | cli_history_prev (void) |
| CNDP_API char * | cli_history_next (void) |
| CNDP_API void | cli_history_reset (void) |
| CNDP_API void | cli_history_dump (void) |
CNE Command line history
Definition in file cli_history.h.
| anonymous enum |
| Enumerator | |
|---|---|
| CLI_NO_HISTORY | Use the default history count |
Definition at line 24 of file cli_history.h.
| CNDP_API struct cli_hist * cli_hist_alloc | ( | void | ) |
Create and allocate a history structure
| CNDP_API void cli_hist_free | ( | struct cli_hist * | hist | ) |
Free a CLI history structure and other memory
| hist | Pointer to the history structure |
| CNDP_API void cli_history_add | ( | char * | line | ) |
Add line to history at the end
| line | Pointer to string to add to the history list |
| CNDP_API void cli_history_del | ( | void | ) |
Delete a history entry
| CNDP_API char * cli_history_line | ( | int | lineno | ) |
Return the history command from line number
| lineno | The line number of the command to return. |
| void cli_history_clear | ( | void | ) |
Clear all of the history lines from the list
| CNDP_API void cli_history_delete | ( | void | ) |
Delete the history lines and structure
| CNDP_API int cli_set_history | ( | uint32_t | nb_hist | ) |
Set the number of lines max in the history list
| nb_hist | Number of lines max in the history list |
| CNDP_API char * cli_history_prev | ( | void | ) |
Return the previous history line
| CNDP_API char * cli_history_next | ( | void | ) |
Return the next history line
| CNDP_API void cli_history_reset | ( | void | ) |
Reset the current history pointer to the last entry.
| CNDP_API void cli_history_dump | ( | void | ) |
Add the default set of directories and commands