mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
30 lines
719 B
C
30 lines
719 B
C
#ifndef _COMPLETE_H_
|
|
#define _COMPLETE_H_ 1
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
AUTOLIB(complete)
|
|
/*
|
|
#pragma lib "libcomplete.a"
|
|
#pragma src "/sys/src/libcomplete"
|
|
*/
|
|
|
|
typedef struct Completion Completion;
|
|
|
|
struct Completion{
|
|
uchar advance; /* whether forward progress has been made */
|
|
uchar complete; /* whether the completion now represents a file or directory */
|
|
char *string; /* the string to advance, suffixed " " or "/" for file or directory */
|
|
int nmatch; /* number of files that matched */
|
|
int nfile; /* number of files returned */
|
|
char **filename; /* their names */
|
|
};
|
|
|
|
Completion* complete(char *dir, char *s);
|
|
void freecompletion(Completion*);
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|
|
#endif
|