[dpdk-dev] [PATCH] Add external parser support for unknown commands.
bruce.richardson at intel.com
Mon Nov 3 11:41:30 CET 2014
On Sun, Nov 02, 2014 at 04:28:28PM -0600, Keith Wiles wrote:
> Allow for a external parser to handle the command line if the
> command is not found and the developer has called the routine
> int cmdline_set_external_parser(struct cmdline * cl,
> cmdline_external_parser_t parser);
> function to set the function pointer.
> The function for the external parser function should return CMDLINE_PARSE_NOMATCH
> if not able to match the command requested or zero is handled.
> Prototype of external routine:
> int (*cmdline_external_parser_t)(struct cmdline * cl, const char * buy);
> Signed-off-by: Keith Wiles <keith.wiles at windriver.com>
what is the expected use case for this? Is it for embedding other programming languages alongside the existing DPDK command-line or some other purpose? [Perhaps the use case could be called out in the patch description]
More information about the dev