xref: /plan9/sys/include/complete.h (revision abe9e455e154a9602b9c7d8f77012494da617202)
1 #pragma	lib	"libcomplete.a"
2 #pragma src "/sys/src/libcomplete"
3 
4 typedef struct Completion Completion;
5 
6 struct Completion{
7 	uchar advance;		/* whether forward progress has been made */
8 	uchar complete;	/* whether the completion now represents a file or directory */
9 	char *string;		/* the string to advance, suffixed " " or "/" for file or directory */
10 	int nmatch;		/* number of files that matched */
11 	int nfile;			/* number of files returned */
12 	char **filename;	/* their names */
13 };
14 
15 Completion* complete(char *dir, char *s);
16 void freecompletion(Completion*);
17