diff options
author | Simon Glass | 2023-08-14 16:40:35 -0600 |
---|---|---|
committer | Tom Rini | 2023-08-25 13:54:33 -0400 |
commit | fc9c0e0771cad76b24f73bb64c105b6ea39721ca (patch) | |
tree | 354bcb5d5fae27ae957696bab20ce2574372fbe0 /include | |
parent | 472317cb12e534f56b631365987934960dfb0a3f (diff) |
expo: cedit: Support writing settings to environment vars
Add a command to write cedit settings to environment variables so that
they can be stored with 'saveenv'.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/cedit.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/cedit.h b/include/cedit.h index bb6e87d4af7..f261207e209 100644 --- a/include/cedit.h +++ b/include/cedit.h @@ -80,4 +80,13 @@ int cedit_write_settings(struct expo *exp, struct abuf *buf); */ int cedit_read_settings(struct expo *exp, oftree tree); +/** + * cedit_write_settings_env() - Write settings to envrionment variables + * + * @exp: Expo to write settings from + * @verbose: true to print each var as it is set + * Return: 0 if OK, -ve on error + */ +int cedit_write_settings_env(struct expo *exp, bool verbose); + #endif /* __CEDIT_H */ |