1
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-05-21 18:26:03 +02:00
gmni/include/util.h

17 lines
341 B
C
Raw Normal View History

2020-09-21 05:50:50 +02:00
#ifndef GEMINI_UTIL_H
#define GEMINI_UTIL_H
#include <stdio.h>
#include <sys/types.h>
2020-09-21 05:50:50 +02:00
struct pathspec {
const char *var;
const char *path;
};
char *getpath(const struct pathspec *paths, size_t npaths);
int mkdirs(char *path, mode_t mode);
2020-10-20 18:55:39 +02:00
int download_resp(FILE *out, struct gemini_response resp, const char *path,
char *url);
2020-09-21 05:50:50 +02:00
#endif