]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.h
Add and use a common readfile() function
[ps-cgit] / cgit.h
diff --git a/cgit.h b/cgit.h
index 893231df84f091ad5e53f316d94d01205480e35d..adb8da4f49be0499eb83ed4a40794f11825be96a 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -211,6 +211,7 @@ struct cgit_environment {
        char *cgit_config;
        char *http_host;
        char *https;
+       char *no_http;
        char *path_info;
        char *query_string;
        char *request_method;
@@ -282,5 +283,6 @@ extern int cgit_parse_snapshots_mask(const char *str);
 extern int cgit_open_filter(struct cgit_filter *filter);
 extern int cgit_close_filter(struct cgit_filter *filter);
 
+extern int readfile(const char *path, char **buf, size_t *size);
 
 #endif /* CGIT_H */