mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
env: Move env_get_char() to env.h
Move env_get_char() over to the new header file. Acked-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
0ac7d722ed
commit
b5f449e8e9
2 changed files with 10 additions and 10 deletions
|
@ -268,4 +268,14 @@ char *env_get_default(const char *name);
|
||||||
/* [re]set to the default environment */
|
/* [re]set to the default environment */
|
||||||
void env_set_default(const char *s, int flags);
|
void env_set_default(const char *s, int flags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* env_get_char() - Get a character from the early environment
|
||||||
|
*
|
||||||
|
* This reads from the pre-relocation environment
|
||||||
|
*
|
||||||
|
* @index: Index of character to read (0 = first)
|
||||||
|
* @return character read, or -ve on error
|
||||||
|
*/
|
||||||
|
int env_get_char(int index);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -265,16 +265,6 @@ struct env_driver {
|
||||||
|
|
||||||
extern struct hsearch_data env_htab;
|
extern struct hsearch_data env_htab;
|
||||||
|
|
||||||
/**
|
|
||||||
* env_get_char() - Get a character from the early environment
|
|
||||||
*
|
|
||||||
* This reads from the pre-relocation environment
|
|
||||||
*
|
|
||||||
* @index: Index of character to read (0 = first)
|
|
||||||
* @return character read, or -ve on error
|
|
||||||
*/
|
|
||||||
int env_get_char(int index);
|
|
||||||
|
|
||||||
#endif /* DO_DEPS_ONLY */
|
#endif /* DO_DEPS_ONLY */
|
||||||
|
|
||||||
#endif /* _ENVIRONMENT_H_ */
|
#endif /* _ENVIRONMENT_H_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue