tcomplete.h - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       tcomplete.h (719B)
       ---
            1 #ifndef _COMPLETE_H_
            2 #define _COMPLETE_H_ 1
            3 #if defined(__cplusplus)
            4 extern "C" { 
            5 #endif
            6 
            7 AUTOLIB(complete)
            8 /*
            9 #pragma        lib        "libcomplete.a"
           10 #pragma src "/sys/src/libcomplete"
           11 */
           12 
           13 typedef struct Completion Completion;
           14 
           15 struct Completion{
           16         uchar advance;                /* whether forward progress has been made */
           17         uchar complete;        /* whether the completion now represents a file or directory */
           18         char *string;                /* the string to advance, suffixed " " or "/" for file or directory */
           19         int nmatch;                /* number of files that matched */
           20         int nfile;                        /* number of files returned */
           21         char **filename;        /* their names */
           22 };
           23 
           24 Completion* complete(char *dir, char *s);
           25 void freecompletion(Completion*);
           26 
           27 #if defined(__cplusplus)
           28 }
           29 #endif
           30 #endif