aboutsummaryrefslogtreecommitdiff
path: root/include/complete.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-02-09 19:33:05 +0000
committerrsc <devnull@localhost>2004-02-09 19:33:05 +0000
commitd51419bf4397cf13d0c50bf84c125477c6bed307 (patch)
treed9a10c72e5b710e7a9f85e632c8b893ecd43dd0a /include/complete.h
parentc1973705501d05e906bd14a0dc25cc4472b5871f (diff)
downloadplan9port-d51419bf4397cf13d0c50bf84c125477c6bed307.tar.gz
plan9port-d51419bf4397cf13d0c50bf84c125477c6bed307.tar.bz2
plan9port-d51419bf4397cf13d0c50bf84c125477c6bed307.zip
various tweaks.
Diffstat (limited to 'include/complete.h')
-rw-r--r--include/complete.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/complete.h b/include/complete.h
new file mode 100644
index 00000000..7ee2b18a
--- /dev/null
+++ b/include/complete.h
@@ -0,0 +1,15 @@
+#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 nfile; /* number of files that matched */
+ char **filename; /* their names */
+};
+
+Completion* complete(char *dir, char *s);
+void freecompletion(Completion*);