summaryrefslogtreecommitdiff
path: root/src/string_vec.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-06-11 10:14:53 +0100
committerPhil Jones <philj56@gmail.com>2022-06-11 10:14:53 +0100
commitc0cd4cdf78886040528b16fad084a14165a16384 (patch)
tree82788f09527c91060cea22246f1af9a2572ce655 /src/string_vec.h
parent7c31982244f179cb2f51bb1d81b21ad4efd649ba (diff)
Add compgen caching.
A list of commands is now stored in $XDG_CACHE_HOME/.cache/tofi-compgen, and regenerated as necessary.
Diffstat (limited to 'src/string_vec.h')
-rw-r--r--src/string_vec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/string_vec.h b/src/string_vec.h
index a5f00d5..0537873 100644
--- a/src/string_vec.h
+++ b/src/string_vec.h
@@ -2,6 +2,7 @@
#define STRING_VEC_H
#include <stddef.h>
+#include <stdio.h>
struct string_vec {
size_t count;
@@ -29,4 +30,7 @@ struct string_vec string_vec_filter(
const struct string_vec *restrict vec,
const char *restrict substr);
+struct string_vec string_vec_load(FILE *file);
+void string_vec_save(struct string_vec *restrict vec, FILE *restrict file);
+
#endif /* STRING_VEC_H */