summaryrefslogtreecommitdiffstats
path: root/include/complete.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-03-01 21:08:14 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2008-03-01 21:08:14 +0100
commitdf31bb46be18edbaca1adbef3dcb16d2033942b9 (patch)
tree98ca794cf8d8753c47135c9b3189a49fd5cb7ea2 /include/complete.h
parenta1a747af7f7bd816af73d808e1c750f536873c3d (diff)
downloadbarebox-df31bb46be18edbaca1adbef3dcb16d2033942b9.tar.gz
barebox-df31bb46be18edbaca1adbef3dcb16d2033942b9.tar.xz
implement TAB completion
Diffstat (limited to 'include/complete.h')
-rw-r--r--include/complete.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/complete.h b/include/complete.h
new file mode 100644
index 0000000000..87332b8160
--- /dev/null
+++ b/include/complete.h
@@ -0,0 +1,15 @@
+#ifndef __COMPLETE_
+#define __COMPLETE_
+
+#include <list.h>
+
+int complete(char *instr, char **outstr);
+void complete_reset(void);
+
+struct complete_handle {
+ struct list_head list;
+ char str[0];
+};
+
+#endif /* __COMPLETE_ */
+