summaryrefslogtreecommitdiff
path: root/include/search.h
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-05-20 14:27:21 -0500
committerTom Rini <trini@konsulko.com>2015-05-21 09:13:19 -0400
commit94b467b14ed908c89a0780256e89b375aa3cf3ef (patch)
tree071d2d605f83795ebf96cb86f51664b6c790a799 /include/search.h
parentbdf1fe4e68b0d240f0ee666ea9d92d3f42f1a23f (diff)
downloadu-boot-imx-94b467b14ed908c89a0780256e89b375aa3cf3ef.zip
u-boot-imx-94b467b14ed908c89a0780256e89b375aa3cf3ef.tar.gz
u-boot-imx-94b467b14ed908c89a0780256e89b375aa3cf3ef.tar.bz2
env: Distinguish finer between source of env change
We already could tell the difference in the callback between an import and "other" which we called interactive. Now add further distinction between interactive (i.e. running env set / env edit / env ask / etc. from the U-Boot command line) and programmatic (i.e. when u-boot source calls any variant of setenv() ). Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/search.h')
-rw-r--r--include/search.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/search.h b/include/search.h
index 9701efb..343dbc3 100644
--- a/include/search.h
+++ b/include/search.h
@@ -120,5 +120,7 @@ extern int hwalk_r(struct hsearch_data *__htab, int (*callback)(ENTRY *));
#define H_MATCH_SUBSTR (1 << 7) /* search for substring matches */
#define H_MATCH_REGEX (1 << 8) /* search for regular expression matches */
#define H_MATCH_METHOD (H_MATCH_IDENT | H_MATCH_SUBSTR | H_MATCH_REGEX)
+#define H_PROGRAMMATIC (1 << 9) /* indicate that an import is from setenv() */
+#define H_ORIGIN_FLAGS (H_INTERACTIVE | H_PROGRAMMATIC)
#endif /* search.h */