diff options
author | June McEnroe <june@causal.agency> | 2020-08-20 14:08:51 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-08-20 14:08:51 -0400 |
commit | f432bd72fa30c75f215626abdaf9b41609c670df (patch) | |
tree | 45ecce3df61d5aeff8f33d3c536fee63cddc7564 /chat.h | |
parent | Match mentions case-sensitively (diff) | |
download | catgirl-f432bd72fa30c75f215626abdaf9b41609c670df.tar.gz catgirl-f432bd72fa30c75f215626abdaf9b41609c670df.zip |
Refactor base dir functions to iterate over paths
Diffstat (limited to '')
-rw-r--r-- | chat.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chat.h b/chat.h index 6e3d20f..60273bc 100644 --- a/chat.h +++ b/chat.h @@ -294,6 +294,12 @@ void logFormat(uint id, const time_t *time, const char *format, ...) __attribute__((format(printf, 3, 4))); void logClose(void); +const char *configPath( + char *buf, size_t cap, const char **dirs, const char *path +); +const char *dataPath( + char *buf, size_t cap, const char **dirs, const char *path +); FILE *configOpen(const char *path, const char *mode); FILE *dataOpen(const char *path, const char *mode); void dataMkdir(const char *path); |