diff options
author | Juergen Beisert <j.beisert@pengutronix.de> | 2007-11-09 23:19:54 +0100 |
---|---|---|
committer | Juergen Beisert <j.beisert@pengutronix.de> | 2007-11-12 16:28:23 +0100 |
commit | 8413d78ab3e3062641dbe3069fcd454858244679 (patch) | |
tree | 5d6ba1e6b049c0b8c12ee703851ec410a6c5763e /include/environment.h | |
parent | 2966bba2160e3d9e828c1eadcd9a35a84878e664 (diff) | |
download | barebox-8413d78ab3e3062641dbe3069fcd454858244679.tar.gz barebox-8413d78ab3e3062641dbe3069fcd454858244679.tar.xz |
separating environment commands, part 2
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
Diffstat (limited to 'include/environment.h')
-rw-r--r-- | include/environment.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/include/environment.h b/include/environment.h index 6612134d3d..a50fc6857f 100644 --- a/include/environment.h +++ b/include/environment.h @@ -24,6 +24,8 @@ #ifndef _ENVIRONMENT_H_ #define _ENVIRONMENT_H_ + +#ifdef __U_BOOT__ /** * Managment of a environment variable */ @@ -53,8 +55,26 @@ int envfs_save(char *filename, char *dirname); int export(const char *); +struct stat; +int file_size_action(const char *, struct stat *, void *, int); +int file_save_action(const char *, struct stat *, void *, int); + +#endif /* __U_BOOT__ */ + +/* This part is used for the host and the target */ +struct action_data { + int fd; + const char *base; + void *writep; +}; +#define PAD4(x) ((x + 3) & ~3) + #endif /* _ENVIRONMENT_H_ */ -/** @file +/** + * @file * @brief Environment handling + * + * Important: This file will also be used on the host to create + * the default environment when building the U-Boot binary. */ |