dots

Personal dotfiles
git clone git://git.gormless.xyz/dots.git
Log | Files | Refs

complete.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