X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fcli.h;h=39b913743b55089266a38a32c6e94b9bb3cb077e;hb=10289b4ed9f68bf3cd99d54acd4efdf7a96e281b;hp=699426252c82b11eb9e7955184612f12c12667e8;hpb=55e8250bd3cfd996d1caa04f520160a89ec04754;p=oweals%2Fu-boot.git diff --git a/include/cli.h b/include/cli.h index 699426252c..39b913743b 100644 --- a/include/cli.h +++ b/include/cli.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2014 Google, Inc * Simon Glass - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __CLI_H @@ -30,6 +29,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 +107,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 *