]> git.lizzy.rs Git - plan9front.git/blob - sys/include/complete.h
Import sources from 2011-03-30 iso image - lib
[plan9front.git] / sys / include / complete.h
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*);