X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fcli.h;h=4c39b9e2b1f17420fb9129907eb4cd319a5349e1;hb=b86a63c42e39f4eb501dc923d51d2f7703aa90c7;hp=699426252c82b11eb9e7955184612f12c12667e8;hpb=dab5e3469d294a4e1ffed8407d296a78e02cc01f;p=karo-tx-uboot.git diff --git a/include/cli.h b/include/cli.h index 699426252c..4c39b9e2b1 100644 --- a/include/cli.h +++ b/include/cli.h @@ -30,6 +30,14 @@ void cli_simple_loop(void); */ int cli_simple_run_command(const char *cmd, int flag); +/** + * cli_simple_process_macros() - Expand $() and ${} format env. variables + * + * @param input Input string possible containing $() / ${} vars + * @param output Output string with $() / ${} vars expanded + */ +void cli_simple_process_macros(const char *input, char *output); + /** * cli_simple_run_command_list() - Execute a list of command * @@ -100,7 +108,7 @@ int cli_readline_into_buffer(const char *const prompt, char *buffer, */ int cli_simple_parse_line(char *line, char *argv[]); -#ifdef CONFIG_OF_CONTROL +#if CONFIG_IS_ENABLED(OF_CONTROL) /** * cli_process_fdt() - process the boot command from the FDT *