move prototypes for envfs_* to envfs.h
environment.h is for environment variables, not for the environment storage (envfs), so move the prototypes to envfs.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
00df6b4637
commit
0c97dd0061
|
@ -27,7 +27,7 @@
|
|||
#include <driver.h>
|
||||
#include <fs.h>
|
||||
#include <linux/stat.h>
|
||||
#include <environment.h>
|
||||
#include <envfs.h>
|
||||
#include <sizes.h>
|
||||
#include <io.h>
|
||||
#include <ns16550.h>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <sizes.h>
|
||||
#include <asm/mmu.h>
|
||||
#include <mach/gpio.h>
|
||||
#include <environment.h>
|
||||
#include <envfs.h>
|
||||
#include <mach/xload.h>
|
||||
#include <i2c/i2c.h>
|
||||
#include <gpio.h>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <common.h>
|
||||
#include <getopt.h>
|
||||
#include <command.h>
|
||||
#include <environment.h>
|
||||
#include <envfs.h>
|
||||
#include <fs.h>
|
||||
|
||||
static int do_loadenv(int argc, char *argv[])
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <errno.h>
|
||||
#include <fs.h>
|
||||
#include <fcntl.h>
|
||||
#include <environment.h>
|
||||
#include <envfs.h>
|
||||
|
||||
static int do_saveenv(int argc, char *argv[])
|
||||
{
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include <debug_ll.h>
|
||||
#include <fs.h>
|
||||
#include <linux/stat.h>
|
||||
#include <environment.h>
|
||||
#include <envfs.h>
|
||||
#include <asm/sections.h>
|
||||
|
||||
extern initcall_t __barebox_initcalls_start[], __barebox_early_initcalls_end[],
|
||||
|
|
|
@ -89,5 +89,11 @@ struct envfs_super {
|
|||
#error "__BYTE_ORDER must be __LITTLE_ENDIAN or __BIG_ENDIAN"
|
||||
#endif
|
||||
|
||||
#endif /* _ENVFS_H */
|
||||
#define ENV_FLAG_NO_OVERWRITE (1 << 0)
|
||||
int envfs_load(char *filename, char *dirname, unsigned flags);
|
||||
int envfs_save(char *filename, char *dirname);
|
||||
|
||||
/* defaults to /dev/env0 */
|
||||
extern char *default_environment_path;
|
||||
|
||||
#endif /* _ENVFS_H */
|
||||
|
|
|
@ -72,17 +72,10 @@ static inline int export(const char *var)
|
|||
int env_pop_context(void);
|
||||
int env_push_context(void);
|
||||
|
||||
/* defaults to /dev/env0 */
|
||||
extern char *default_environment_path;
|
||||
|
||||
int export(const char *);
|
||||
|
||||
#endif /* __BAREBOX__ */
|
||||
|
||||
#define ENV_FLAG_NO_OVERWRITE (1 << 0)
|
||||
int envfs_load(char *filename, char *dirname, unsigned flags);
|
||||
int envfs_save(char *filename, char *dirname);
|
||||
|
||||
#endif /* _ENVIRONMENT_H_ */
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue