diff options
author | June McEnroe <june@causal.agency> | 2021-10-05 23:16:32 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-10-05 23:30:09 -0400 |
commit | fa944345a63a083555a1f1933aabf4ea6f27a307 (patch) | |
tree | 37a053122b20d4c306013911cb022b000cecf0b6 /bounce.h | |
parent | Load and reload local certificates like normal (diff) | |
download | pounce-fa944345a63a083555a1f1933aabf4ea6f27a307.tar.gz pounce-fa944345a63a083555a1f1933aabf4ea6f27a307.zip |
Refactor XDG base directory iterator API
Finally something more reasonable for call sites.
Diffstat (limited to '')
-rw-r--r-- | bounce.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bounce.h b/bounce.h index 295a448..8e6ed09 100644 --- a/bounce.h +++ b/bounce.h @@ -249,8 +249,8 @@ void stateSync(struct Client *client); const char *stateNick(void); const char *stateEcho(void); -const char *configPath(const char **dirs, const char *path); -const char *dataPath(const char **dirs, const char *path); +char *configPath(char *buf, size_t cap, const char *path, int i); +char *dataPath(char *buf, size_t cap, const char *path, int i); FILE *configOpen(const char *path, const char *mode); FILE *dataOpen(const char *path, const char *mode); |