X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/044e2d26da4f8b4f9ff25e4a729ab4e393073b5e..f5c83d7b5ddceb03e1c6bda2e43c48500c7da9f5:/cgit.h diff --git a/cgit.h b/cgit.h index b2253d2..0f1e186 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 @@ -179,6 +184,7 @@ struct cgit_query { int show_all; int context; int ignorews; + int follow; char *vpath; }; @@ -221,6 +227,7 @@ struct cgit_config { int case_sensitive_sort; int embedded; int enable_filter_overrides; + int enable_follow_links; int enable_http_clone; int enable_index_links; int enable_index_owner; @@ -384,4 +391,6 @@ extern int readfile(const char *path, char **buf, size_t *size); extern char *expand_macros(const char *txt); +extern char *get_mimetype_from_file(const char *filename, const char *ext); + #endif /* CGIT_H */