diff options
author | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-13 15:28:15 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-13 15:28:15 +0200 |
commit | 6dd5fcd940ad606e0cc845cbf34bed8d3c9a335d (patch) | |
tree | fe4a5ed591a8fd1d3c9aac2332c6077a37c9ee63 /include/environment.h | |
parent | bad19331712bd5d13a07432b514eacef6acf2776 (diff) | |
download | barebox-6dd5fcd940ad606e0cc845cbf34bed8d3c9a335d.tar.gz barebox-6dd5fcd940ad606e0cc845cbf34bed8d3c9a335d.tar.xz |
remove old functions from include/environment.h
Diffstat (limited to 'include/environment.h')
-rw-r--r-- | include/environment.h | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/include/environment.h b/include/environment.h index 744cc12328..5979404b57 100644 --- a/include/environment.h +++ b/include/environment.h @@ -22,27 +22,13 @@ */ #ifndef _ENVIRONMENT_H_ -#define _ENVIRONMENT_H_ 1 +#define _ENVIRONMENT_H_ -/************************************************************************** - * - * The "environment" is stored as a list of '\0' terminated - * "name=value" strings. The end of the list is marked by a double - * '\0'. New entries are always added at the end. Deleting an entry - * shifts the remaining entries to the front. Replacing an entry is a - * combination of deleting the old value and adding the new one. - * - * The environment is preceeded by a 32 bit CRC over the data part. - * - ************************************************************************** - */ - -int add_env_spec(char *spec); +const char *getenv(const char *); +int setenv(const char *, const char *); -/* common/cmd_nvedit.c */ -const char *getenv (const char *); -int saveenv (void); -int setenv (const char *, const char *); +int envfs_load(char *filename, char *dirname); +int envfs_save(char *filename, char *dirname); #endif /* _ENVIRONMENT_H_ */ |