aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorHeinrich Schuchardt2018-07-29 04:08:14 -0500
committerTom Rini2018-08-10 12:45:32 -0500
commit1b04047a875e8f3da78417c1a7f232e12490436d (patch)
tree7744e13175078a08ea4daa9202636a84f5a421db /README
parent938b05a5d796045a93a98ec17606c434c1339881 (diff)
downloadu-boot-1b04047a875e8f3da78417c1a7f232e12490436d.tar.gz
u-boot-1b04047a875e8f3da78417c1a7f232e12490436d.tar.xz
u-boot-1b04047a875e8f3da78417c1a7f232e12490436d.zip
README: U_BOOT_ENV_CALLBACK functions
Describe the interface of environment variable callback functions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'README')
-rw-r--r--README11
1 files changed, 11 insertions, 0 deletions
diff --git a/README b/README
index aee0f7371c..a91af2a189 100644
--- a/README
+++ b/README
@@ -3943,6 +3943,17 @@ If CONFIG_REGEX is defined, the variable_name above is evaluated as a
3943regular expression. This allows multiple variables to be connected to 3943regular expression. This allows multiple variables to be connected to
3944the same callback without explicitly listing them all out. 3944the same callback without explicitly listing them all out.
3945 3945
3946The signature of the callback functions is:
3947
3948 int callback(const char *name, const char *value, enum env_op op, int flags)
3949
3950* name - changed environment variable
3951* value - new value of the environment variable
3952* op - operation (create, overwrite, or delete)
3953* flags - attributes of the environment variable change, see flags H_* in
3954 include/search.h
3955
3956The return value is 0 if the variable change is accepted and 1 otherwise.
3946 3957
3947Command Line Parsing: 3958Command Line Parsing:
3948===================== 3959=====================