2008-03-01 20:08:14 +00:00
|
|
|
#ifndef __COMPLETE_
|
|
|
|
#define __COMPLETE_
|
|
|
|
|
2009-11-02 13:31:18 +00:00
|
|
|
#include <linux/list.h>
|
2011-06-06 15:14:38 +00:00
|
|
|
#include <malloc.h>
|
|
|
|
#include <stringlist.h>
|
|
|
|
|
|
|
|
#define COMPLETE_END 0
|
|
|
|
#define COMPLETE_CONTINUE 1
|
2008-03-01 20:08:14 +00:00
|
|
|
|
|
|
|
int complete(char *instr, char **outstr);
|
|
|
|
void complete_reset(void);
|
|
|
|
|
2011-06-06 15:14:38 +00:00
|
|
|
int command_complete(struct string_list *sl, char *instr);
|
2011-06-05 12:58:08 +00:00
|
|
|
int device_complete(struct string_list *sl, char *instr);
|
complete: add empty complete support
for cpuinfo, clear, dhcp, false, login, lsmod, meminfo, passwd, pwd, reginfo,
reset, true, usb, version
for mach-imx and mach-mxs: dump_clocks
for u_serial: mycdev
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-06-07 09:32:02 +00:00
|
|
|
int empty_complete(struct string_list *sl, char *instr);
|
2011-06-08 16:03:53 +00:00
|
|
|
int eth_complete(struct string_list *sl, char *instr);
|
2012-06-13 17:27:46 +00:00
|
|
|
int command_var_complete(struct string_list *sl, char *instr);
|
2011-06-10 04:14:24 +00:00
|
|
|
int devfs_partition_complete(struct string_list *sl, char *instr);
|
2011-06-06 15:14:38 +00:00
|
|
|
|
2008-03-01 20:08:14 +00:00
|
|
|
#endif /* __COMPLETE_ */
|
|
|
|
|