summaryrefslogtreecommitdiff
path: root/include/search.h
diff options
context:
space:
mode:
authorGerlando Falauto <gerlando.falauto@keymile.com>2012-08-24 00:11:38 +0000
committerTom Rini <trini@ti.com>2012-09-18 12:01:52 -0700
commit348b1f1c6064990210a6797c86514fd358b73062 (patch)
tree05d75464ef3a543a3c84a2fc7b2e2c3a61c029b3 /include/search.h
parentc3f6525854bbc664ce9fbed9754af1daf56ba08e (diff)
downloadu-boot-348b1f1c6064990210a6797c86514fd358b73062.tar.gz
env: make himport_r() selective on variables
Add 2 new arguments to himport_r(): o "nvars", "vars": number and list of variables to take into account (0 means ALL) NOTE: This patch does not change the current behaviour. Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include/search.h')
-rw-r--r--include/search.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/search.h b/include/search.h
index a4a5ef4956..94d75fc65c 100644
--- a/include/search.h
+++ b/include/search.h
@@ -94,9 +94,13 @@ extern ssize_t hexport_r(struct hsearch_data *__htab,
const char __sep, char **__resp, size_t __size,
int argc, char * const argv[]);
+/*
+ * nvars: length of vars array
+ * vars: array of strings (variable names) to import (nvars == 0 means all)
+ */
extern int himport_r(struct hsearch_data *__htab,
const char *__env, size_t __size, const char __sep,
- int __flag);
+ int __flag, int nvars, char * const vars[]);
/* Flags for himport_r() */
#define H_NOCLEAR (1 << 0) /* do not clear hash table before importing */