diff options
| author | Joe Hershberger <[email protected]> | 2015-05-20 14:27:21 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2015-05-21 09:13:19 -0400 |
| commit | 94b467b14ed908c89a0780256e89b375aa3cf3ef (patch) | |
| tree | 071d2d605f83795ebf96cb86f51664b6c790a799 /include | |
| parent | bdf1fe4e68b0d240f0ee666ea9d92d3f42f1a23f (diff) | |
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/search.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/search.h b/include/search.h index 9701efb2dfe..343dbc3d487 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 */ |
