]> git.cameronkatri.com Git - cgit.git/blobdiff - cgit.h
Make it possible for a single cmd to work both with and without a repo
[cgit.git] / cgit.h
diff --git a/cgit.h b/cgit.h
index ee8c716be4d50bd799d0c3fa899876bf7f54a2ec..7761b6e40d5cf53bd4b7e9d3e514d1be72385edd 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -132,6 +132,7 @@ struct cgit_config {
        char *repo_group;
        char *robots;
        char *root_title;
+       char *root_desc;
        char *script_name;
        char *virtual_root;
        int cache_dynamic_ttl;
@@ -221,4 +222,11 @@ 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 */