summaryrefslogtreecommitdiff
path: root/include/complete.h
blob: 75a92fc86aa0600d448e6b4fe108cc344a72d73c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __COMPLETE_
#define __COMPLETE_

#include <linux/list.h>
#include <malloc.h>
#include <stringlist.h>

#define COMPLETE_END		0
#define COMPLETE_CONTINUE	1

int complete(char *instr, char **outstr);
void complete_reset(void);

int command_complete(struct string_list *sl, char *instr);
int device_complete(struct string_list *sl, char *instr);
int empty_complete(struct string_list *sl, char *instr);
int eth_complete(struct string_list *sl, char *instr);
int command_var_complete(struct string_list *sl, char *instr);
int devfs_partition_complete(struct string_list *sl, char *instr);
int devicetree_alias_complete(struct string_list *sl, char *instr);
int devicetree_nodepath_complete(struct string_list *sl, char *instr);
int devicetree_complete(struct string_list *sl, char *instr);
int devicetree_file_complete(struct string_list *sl, char *instr);
int env_param_noeval_complete(struct string_list *sl, char *instr);

#endif /* __COMPLETE_ */