9
0
Fork 0

environment: export_/getenv_ull as inline ifndef CONFIG_ENVIRONMENT_VARIABLES

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2012-01-11 01:53:10 +01:00 committed by Sascha Hauer
parent 77b1e27530
commit 487c34d859
1 changed files with 7 additions and 3 deletions

View File

@ -47,6 +47,8 @@ char *var_name(struct variable_d *);
#ifdef CONFIG_ENVIRONMENT_VARIABLES
const char *getenv(const char *);
int setenv(const char *, const char *);
void export_env_ull(const char *name, unsigned long long val);
unsigned long long getenv_ull(const char *name);
#else
static inline char *getenv(const char *var)
{
@ -57,11 +59,13 @@ static inline int setenv(const char *var, const char *val)
{
return 0;
}
static inline void export_env_ull(const char *name, unsigned long long val) {}
static inline unsigned long long getenv_ull(const char *name)
{
return 0;
}
#endif
void export_env_ull(const char *name, unsigned long long val);
unsigned long long getenv_ull(const char *name);
int env_pop_context(void);
int env_push_context(void);