mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
env: Move env_get_yesno() to env.h
Move env_get_yesno() 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:
parent
9eef56dbe3
commit
6bf6dbee01
5 changed files with 11 additions and 6 deletions
|
@ -63,6 +63,14 @@ int env_match(unsigned char *name, int index);
|
|||
*/
|
||||
int env_get_f(const char *name, char *buf, unsigned int len);
|
||||
|
||||
/**
|
||||
* env_get_yesno() - Read an environment variable as a boolean
|
||||
*
|
||||
* @return 1 if yes/true (Y/y/T/t), -1 if variable does not exist (i.e. default
|
||||
* to true), 0 if otherwise
|
||||
*/
|
||||
int env_get_yesno(const char *var);
|
||||
|
||||
/**
|
||||
* env_get_ulong() - Return an environment variable as an integer value
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue