]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.h
Avoid SEGFAULT on invalid requests
[ps-cgit] / cgit.h
diff --git a/cgit.h b/cgit.h
index e2af0c2e285f7e669fde2e7cd004775ad1c15f90..92f0c5a27b12e6c5e41dea00872a83f20e635bac 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -24,6 +24,7 @@
  */
 #define FMT_LONGDATE "%Y-%m-%d %H:%M:%S (%Z)"
 #define FMT_SHORTDATE "%Y-%m-%d"
+#define FMT_ATOMDATE "%Y-%m-%dT%H:%M:%SZ"
 
 
 /*
@@ -84,7 +85,7 @@ struct commitinfo {
 struct taginfo {
        char *tagger;
        char *tagger_email;
-       int tagger_date;
+       unsigned long tagger_date;
        char *msg;
 };
 
@@ -117,7 +118,9 @@ struct cgit_query {
        char *path;
        char *name;
        char *mimetype;
+       char *url;
        int   ofs;
+       int nohead;
 };
 
 struct cgit_config {
@@ -230,11 +233,5 @@ extern const char *cgit_repobasename(const char *reponame);
 
 extern int cgit_parse_snapshots_mask(const char *str);
 
-/* libgit.a either links against or compiles its own implementation of
- * strcasestr(), and we'd like to reuse it. Simply re-declaring it
- * seems to do the trick.
- */
-extern char *strcasestr(const char *haystack, const char *needle);
-
 
 #endif /* CGIT_H */