]> git.dujemihanovic.xyz Git - u-boot.git/commit
cli: Create a function to process characters
authorSimon Glass <sjg@chromium.org>
Mon, 2 Oct 2023 01:13:13 +0000 (19:13 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 11 Oct 2023 19:43:54 +0000 (15:43 -0400)
commite5509ce87b29f773b045200735bec2903b72eed4
tree3f3255299b7ebcd526701159bde7a4350ea1fca4
parent8d997aab6e231aa3b442ffe504b24709ff9c7c19
cli: Create a function to process characters

Move most of the inner loop from cread_line() into a new function. This
will allow using it from other code.

This involves adding a few more members to the state struct.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/cli_readline.c
include/cli.h