diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-07-29 11:08:14 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-08-10 13:45:32 -0400 |
commit | 1b04047a875e8f3da78417c1a7f232e12490436d (patch) | |
tree | 7744e13175078a08ea4daa9202636a84f5a421db | |
parent | 938b05a5d796045a93a98ec17606c434c1339881 (diff) | |
download | u-boot-1b04047a875e8f3da78417c1a7f232e12490436d.tar.gz |
README: U_BOOT_ENV_CALLBACK functions
Describe the interface of environment variable callback functions.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r-- | README | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -3943,6 +3943,17 @@ If CONFIG_REGEX is defined, the variable_name above is evaluated as a regular expression. This allows multiple variables to be connected to the same callback without explicitly listing them all out. +The signature of the callback functions is: + + int callback(const char *name, const char *value, enum env_op op, int flags) + +* name - changed environment variable +* value - new value of the environment variable +* op - operation (create, overwrite, or delete) +* flags - attributes of the environment variable change, see flags H_* in + include/search.h + +The return value is 0 if the variable change is accepted and 1 otherwise. Command Line Parsing: ===================== |