1
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-05-06 00:06:03 +02:00
gmni/include/util.h
Eyal Sawady 93f30522f0 gmnlm: create cert dir on 6x response
So that the OpenSSL command doesn't fail when the cert dir hasn't
already been created.
2021-03-09 08:08:45 -05:00

18 lines
386 B
C

#ifndef GEMINI_UTIL_H
#define GEMINI_UTIL_H
#include <stdio.h>
#include <sys/types.h>
struct pathspec {
const char *var;
const char *path;
};
char *getpath(const struct pathspec *paths, size_t npaths);
void posix_dirname(char *path, char *dname);
int mkdirs(char *path, mode_t mode);
int download_resp(FILE *out, struct gemini_response resp, const char *path,
char *url);
#endif