X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/30304d8156a72ffc95e45e1aa9407319b81bd253..1c581a072651524f3b0d91f33e22a42c4166dd96:/cgit.h diff --git a/cgit.h b/cgit.h index 3120562..4b4bcf4 100644 --- a/cgit.h +++ b/cgit.h @@ -3,6 +3,8 @@ #include +#include + #include #include #include @@ -23,6 +25,9 @@ #include #include +/* Add isgraph(x) to Git's sane ctype support (see git-compat-util.h) */ +#undef isgraph +#define isgraph(x) (isprint((x)) && !isspace((x))) /* * Dateformats used on misc. pages @@ -168,7 +173,6 @@ struct cgit_query { char *sha2; char *path; char *name; - char *mimetype; char *url; char *period; int ofs; @@ -386,4 +390,6 @@ extern int readfile(const char *path, char **buf, size_t *size); extern char *expand_macros(const char *txt); +extern char *get_mimetype_for_filename(const char *filename); + #endif /* CGIT_H */