1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

env: Move env_get_hex() to env.h

Move env_get_hex() over to the new header file.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
Simon Glass
2019-08-01 09:46:50 -06:00
committed by Tom Rini
parent 6bf6dbee01
commit cdbff9fc40
5 changed files with 15 additions and 12 deletions

View File

@@ -93,6 +93,18 @@ ulong env_get_ulong(const char *name, int base, ulong default_val);
*/
int env_set_ulong(const char *varname, ulong value);
/**
* env_get_hex() - Return an environment variable as a hex value
*
* Decode an environment as a hex number (it may or may not have a 0x
* prefix). If the environment variable cannot be found, or does not start
* with hex digits, the default value is returned.
*
* @varname: Variable to decode
* @default_val: Value to return on error
*/
ulong env_get_hex(const char *varname, ulong default_val);
/**
* env_set_hex() - set an environment variable to a hex value
*