summaryrefslogtreecommitdiffabout
path: root/cgit.h
Unidiff
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index 4fa5cf2..1972d75 100644
--- a/cgit.h
+++ b/cgit.h
@@ -55,128 +55,129 @@ struct cgit_repo {
55 char *defbranch; 55 char *defbranch;
56 char *group; 56 char *group;
57 char *module_link; 57 char *module_link;
58 char *readme; 58 char *readme;
59 char *clone_url; 59 char *clone_url;
60 int snapshots; 60 int snapshots;
61 int enable_log_filecount; 61 int enable_log_filecount;
62 int enable_log_linecount; 62 int enable_log_linecount;
63}; 63};
64 64
65struct cgit_repolist { 65struct cgit_repolist {
66 int length; 66 int length;
67 int count; 67 int count;
68 struct cgit_repo *repos; 68 struct cgit_repo *repos;
69}; 69};
70 70
71struct commitinfo { 71struct commitinfo {
72 struct commit *commit; 72 struct commit *commit;
73 char *author; 73 char *author;
74 char *author_email; 74 char *author_email;
75 unsigned long author_date; 75 unsigned long author_date;
76 char *committer; 76 char *committer;
77 char *committer_email; 77 char *committer_email;
78 unsigned long committer_date; 78 unsigned long committer_date;
79 char *subject; 79 char *subject;
80 char *msg; 80 char *msg;
81 char *msg_encoding; 81 char *msg_encoding;
82}; 82};
83 83
84struct taginfo { 84struct taginfo {
85 char *tagger; 85 char *tagger;
86 char *tagger_email; 86 char *tagger_email;
87 int tagger_date; 87 int tagger_date;
88 char *msg; 88 char *msg;
89}; 89};
90 90
91struct refinfo { 91struct refinfo {
92 const char *refname; 92 const char *refname;
93 struct object *object; 93 struct object *object;
94 union { 94 union {
95 struct taginfo *tag; 95 struct taginfo *tag;
96 struct commitinfo *commit; 96 struct commitinfo *commit;
97 }; 97 };
98}; 98};
99 99
100struct reflist { 100struct reflist {
101 struct refinfo **refs; 101 struct refinfo **refs;
102 int alloc; 102 int alloc;
103 int count; 103 int count;
104}; 104};
105 105
106struct cgit_query { 106struct cgit_query {
107 int has_symref; 107 int has_symref;
108 int has_sha1; 108 int has_sha1;
109 char *raw; 109 char *raw;
110 char *repo; 110 char *repo;
111 char *page; 111 char *page;
112 char *search; 112 char *search;
113 char *grep; 113 char *grep;
114 char *head; 114 char *head;
115 char *sha1; 115 char *sha1;
116 char *sha2; 116 char *sha2;
117 char *path; 117 char *path;
118 char *name; 118 char *name;
119 char *mimetype;
119 int ofs; 120 int ofs;
120}; 121};
121 122
122struct cgit_config { 123struct cgit_config {
123 char *agefile; 124 char *agefile;
124 char *cache_root; 125 char *cache_root;
125 char *clone_prefix; 126 char *clone_prefix;
126 char *css; 127 char *css;
127 char *index_header; 128 char *index_header;
128 char *index_info; 129 char *index_info;
129 char *logo; 130 char *logo;
130 char *logo_link; 131 char *logo_link;
131 char *module_link; 132 char *module_link;
132 char *repo_group; 133 char *repo_group;
133 char *robots; 134 char *robots;
134 char *root_title; 135 char *root_title;
135 char *root_desc; 136 char *root_desc;
136 char *root_readme; 137 char *root_readme;
137 char *script_name; 138 char *script_name;
138 char *virtual_root; 139 char *virtual_root;
139 int cache_size; 140 int cache_size;
140 int cache_dynamic_ttl; 141 int cache_dynamic_ttl;
141 int cache_max_create_time; 142 int cache_max_create_time;
142 int cache_repo_ttl; 143 int cache_repo_ttl;
143 int cache_root_ttl; 144 int cache_root_ttl;
144 int cache_static_ttl; 145 int cache_static_ttl;
145 int enable_index_links; 146 int enable_index_links;
146 int enable_log_filecount; 147 int enable_log_filecount;
147 int enable_log_linecount; 148 int enable_log_linecount;
148 int max_repo_count; 149 int max_repo_count;
149 int max_commit_count; 150 int max_commit_count;
150 int max_lock_attempts; 151 int max_lock_attempts;
151 int max_msg_len; 152 int max_msg_len;
152 int max_repodesc_len; 153 int max_repodesc_len;
153 int nocache; 154 int nocache;
154 int renamelimit; 155 int renamelimit;
155 int snapshots; 156 int snapshots;
156 int summary_branches; 157 int summary_branches;
157 int summary_log; 158 int summary_log;
158 int summary_tags; 159 int summary_tags;
159}; 160};
160 161
161struct cgit_page { 162struct cgit_page {
162 time_t modified; 163 time_t modified;
163 time_t expires; 164 time_t expires;
164 char *mimetype; 165 char *mimetype;
165 char *charset; 166 char *charset;
166 char *filename; 167 char *filename;
167 char *title; 168 char *title;
168}; 169};
169 170
170struct cgit_context { 171struct cgit_context {
171 struct cgit_query qry; 172 struct cgit_query qry;
172 struct cgit_config cfg; 173 struct cgit_config cfg;
173 struct cgit_repo *repo; 174 struct cgit_repo *repo;
174 struct cgit_page page; 175 struct cgit_page page;
175}; 176};
176 177
177struct cgit_snapshot_format { 178struct cgit_snapshot_format {
178 const char *suffix; 179 const char *suffix;
179 const char *mimetype; 180 const char *mimetype;
180 write_archive_fn_t write_func; 181 write_archive_fn_t write_func;
181 int bit; 182 int bit;
182}; 183};