aboutsummaryrefslogtreecommitdiff
path: root/cgit.h
diff refs
from:
to:
flip
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/cgit.h b/cgit.h
index 7d7ece7..e2b8cbc 100644
--- a/cgit.h
+++ b/cgit.h
@@ -63,7 +63,7 @@ typedef enum {
} diff_type;
typedef enum {
- ABOUT, COMMIT, SOURCE, EMAIL, AUTH, OWNER
+ ABOUT, COMMIT, SOURCE, EMAIL, AUTH, OWNER, CI
} filter_type;
struct cgit_filter {
@@ -90,6 +90,9 @@ struct cgit_repo {
char *extra_head_content;
char *owner;
char *homepage;
+ char *ci_url;
+ char *ci_branch_url;
+ char *ci_tag_url;
char *defbranch;
char *module_link;
struct string_list readme;
@@ -116,6 +119,7 @@ struct cgit_repo {
struct cgit_filter *source_filter;
struct cgit_filter *email_filter;
struct cgit_filter *owner_filter;
+ struct cgit_filter *ci_filter;
struct string_list submodules;
int hide;
int ignore;
@@ -196,9 +200,12 @@ struct cgit_query {
struct cgit_config {
char *agefile;
char *cache_root;
+ char *ci_url;
+ char *ci_branch_url;
+ char *ci_tag_url;
char *clone_prefix;
char *clone_url;
- char *favicon;
+ struct string_list favicon;
char *footer;
char *head_include;
char *header;
@@ -274,6 +281,7 @@ struct cgit_config {
struct cgit_filter *email_filter;
struct cgit_filter *owner_filter;
struct cgit_filter *auth_filter;
+ struct cgit_filter *ci_filter;
};
struct cgit_page {
@@ -334,6 +342,8 @@ extern struct cgit_repo *cgit_get_repoinfo(const char *url);
extern void cgit_repo_config(struct cgit_repo *repo, const char *name,
const char *value);
+extern int cgit_have_repository(void);
+
extern int chk_zero(int result, char *msg);
extern int chk_positive(int result, char *msg);
extern int chk_non_negative(int result, char *msg);