summaryrefslogtreecommitdiffstats
path: root/include/search.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-17 16:51:59 -0500
committerWolfgang Denk <wd@denx.de>2011-01-09 17:57:37 +0100
commit560d424b6d7cd4205b062ad95f1b104bd4f8bcc3 (patch)
tree5a429e36ad18a8fa2e0b026d143c38d7f3d493af /include/search.h
parent42df1e1618f2bcae308ad193a136b72b82103bea (diff)
downloadblackbird-obmc-uboot-560d424b6d7cd4205b062ad95f1b104bd4f8bcc3.tar.gz
blackbird-obmc-uboot-560d424b6d7cd4205b062ad95f1b104bd4f8bcc3.zip
env: re-add support for auto-completion
Currently, only basic completion is supported (no globs), but this is what we had previously. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/search.h')
-rw-r--r--include/search.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/search.h b/include/search.h
index 81ced7f48e..a7c1293770 100644
--- a/include/search.h
+++ b/include/search.h
@@ -74,6 +74,13 @@ extern void hdestroy_r(struct hsearch_data *__htab);
extern int hsearch_r(ENTRY __item, ACTION __action, ENTRY ** __retval,
struct hsearch_data *__htab);
+/*
+ * Search for an entry matching `MATCH'. Otherwise, Same semantics
+ * as hsearch_r().
+ */
+extern int hmatch_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);
OpenPOWER on IntegriCloud