Blame


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