summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-10-18 14:36:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-10-18 22:45:32 +0200
commiteca7871bced78837154ad52c42864ba3c87a9904 (patch)
treed6ad489173bde58cef1c41c8f01f2698fa661343 /include
parent57aac5f1ff63b4997d3dc665c4c05f5470a1e681 (diff)
downloadbarebox-eca7871bced78837154ad52c42864ba3c87a9904.tar.gz
barebox-eca7871bced78837154ad52c42864ba3c87a9904.tar.xz
complete: Add completion for nv and globalvar commands
The 'nv' command is often used to create a nv variable for an existing global variable, so add a command completion function for this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/globalvar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/globalvar.h b/include/globalvar.h
index 2a5d8a1a1a..ecd9f1d186 100644
--- a/include/globalvar.h
+++ b/include/globalvar.h
@@ -4,6 +4,7 @@
#include <param.h>
#include <driver.h>
#include <linux/err.h>
+#include <stringlist.h>
extern struct device_d global_device;
@@ -123,5 +124,6 @@ static inline void dev_param_init_from_nv(struct device_d *dev, const char *name
void nv_var_set_clean(void);
int nvvar_save(void);
+int nv_global_complete(struct string_list *sl, char *instr);
#endif /* __GLOBALVAR_H */