summaryrefslogtreecommitdiff
path: root/include/cli.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-08-06 09:37:38 +0200
committerTom Rini <trini@ti.com>2014-08-21 12:01:13 -0400
commita06be2d07792f6a995faf10df254898a840297fe (patch)
treedbd4a42641b1730f680558ee4cd7e043a26281e4 /include/cli.h
parentb0d7beefc1e1a4048cca4f510336cecc20b3e1d5 (diff)
downloadu-boot-imx-a06be2d07792f6a995faf10df254898a840297fe.zip
u-boot-imx-a06be2d07792f6a995faf10df254898a840297fe.tar.gz
u-boot-imx-a06be2d07792f6a995faf10df254898a840297fe.tar.bz2
cli: Export cli_simple_process_macros for use outside of cli_simple
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/cli.h')
-rw-r--r--include/cli.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cli.h b/include/cli.h
index 6994262..6da7a4a 100644
--- a/include/cli.h
+++ b/include/cli.h
@@ -31,6 +31,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
*
* The commands should be separated by ; or \n and will be executed