summaryrefslogtreecommitdiff
path: root/include/search.h
diff options
context:
space:
mode:
authorGerlando Falauto <gerlando.falauto@keymile.com>2012-08-24 00:11:40 +0000
committerTom Rini <trini@ti.com>2012-09-18 12:01:52 -0700
commit152874b65b8060e7b026933ce332a9687256e28c (patch)
tree7b52fcce948031ab356eb3d480f3eea6cd4bf301 /include/search.h
parentc5983592e912835fe9ed00b9d98b05580c460eae (diff)
downloadu-boot-imx-152874b65b8060e7b026933ce332a9687256e28c.zip
u-boot-imx-152874b65b8060e7b026933ce332a9687256e28c.tar.gz
u-boot-imx-152874b65b8060e7b026933ce332a9687256e28c.tar.bz2
env: check and apply changes on delete/destroy
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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/search.h b/include/search.h
index 721c8ac..93e1cbc 100644
--- a/include/search.h
+++ b/include/search.h
@@ -73,7 +73,7 @@ struct hsearch_data {
extern int hcreate_r(size_t __nel, struct hsearch_data *__htab);
/* Destroy current internal hashing table. */
-extern void hdestroy_r(struct hsearch_data *__htab);
+extern void hdestroy_r(struct hsearch_data *__htab, int do_apply);
/*
* Search for entry matching ITEM.key in internal hash table. If
@@ -98,7 +98,8 @@ extern int hstrstr_r(const char *__match, int __last_idx, ENTRY ** __retval,
struct hsearch_data *__htab);
/* Search and delete entry matching ITEM.key in internal hash table. */
-extern int hdelete_r(const char *__key, struct hsearch_data *__htab);
+extern int hdelete_r(const char *__key, struct hsearch_data *__htab,
+ int do_apply);
extern ssize_t hexport_r(struct hsearch_data *__htab,
const char __sep, char **__resp, size_t __size,