diff options
Diffstat (limited to '')
-rw-r--r-- | chat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chat.h b/chat.h index 9317843..57d4ba6 100644 --- a/chat.h +++ b/chat.h @@ -15,6 +15,7 @@ */ #include <err.h> +#include <getopt.h> #include <stdbool.h> #include <stdint.h> #include <string.h> @@ -139,6 +140,12 @@ void edit(size_t id, enum Edit op, wchar_t ch); char *editHead(void); char *editTail(void); +FILE *configOpen(const char *path, const char *mode); +int getopt_config( + int argc, char *const *argv, + const char *optstring, const struct option *longopts, int *longindex +); + static inline enum Color hash(const char *str) { if (*str == '~') str++; uint32_t hash = 0; |