author | Lars Hjemli <hjemli@gmail.com> | 2010-08-04 01:10:29 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2010-08-04 01:10:29 (UTC) |
commit | aec9c245e7eaf444c7ae1851e3eda3b30748950f (patch) (unidiff) | |
tree | 04d5e945781441f2589ae8eb44bee8d5a2b17c2b /cgit.h | |
parent | e6c960c7c0f0d2e54b51cc43ef190df3ce52755e (diff) | |
parent | 119397b175874bd606952e93b7249ae4ffb9afbe (diff) | |
download | cgit-aec9c245e7eaf444c7ae1851e3eda3b30748950f.zip cgit-aec9c245e7eaf444c7ae1851e3eda3b30748950f.tar.gz cgit-aec9c245e7eaf444c7ae1851e3eda3b30748950f.tar.bz2 |
Merge branch 'jd/gitolite'
-rw-r--r-- | cgit.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -106,163 +106,166 @@ struct commitinfo { | |||
106 | 106 | ||
107 | struct taginfo { | 107 | struct taginfo { |
108 | char *tagger; | 108 | char *tagger; |
109 | char *tagger_email; | 109 | char *tagger_email; |
110 | unsigned long tagger_date; | 110 | unsigned long tagger_date; |
111 | char *msg; | 111 | char *msg; |
112 | }; | 112 | }; |
113 | 113 | ||
114 | struct refinfo { | 114 | struct refinfo { |
115 | const char *refname; | 115 | const char *refname; |
116 | struct object *object; | 116 | struct object *object; |
117 | union { | 117 | union { |
118 | struct taginfo *tag; | 118 | struct taginfo *tag; |
119 | struct commitinfo *commit; | 119 | struct commitinfo *commit; |
120 | }; | 120 | }; |
121 | }; | 121 | }; |
122 | 122 | ||
123 | struct reflist { | 123 | struct reflist { |
124 | struct refinfo **refs; | 124 | struct refinfo **refs; |
125 | int alloc; | 125 | int alloc; |
126 | int count; | 126 | int count; |
127 | }; | 127 | }; |
128 | 128 | ||
129 | struct cgit_query { | 129 | struct cgit_query { |
130 | int has_symref; | 130 | int has_symref; |
131 | int has_sha1; | 131 | int has_sha1; |
132 | char *raw; | 132 | char *raw; |
133 | char *repo; | 133 | char *repo; |
134 | char *page; | 134 | char *page; |
135 | char *search; | 135 | char *search; |
136 | char *grep; | 136 | char *grep; |
137 | char *head; | 137 | char *head; |
138 | char *sha1; | 138 | char *sha1; |
139 | char *sha2; | 139 | char *sha2; |
140 | char *path; | 140 | char *path; |
141 | char *name; | 141 | char *name; |
142 | char *mimetype; | 142 | char *mimetype; |
143 | char *url; | 143 | char *url; |
144 | char *period; | 144 | char *period; |
145 | int ofs; | 145 | int ofs; |
146 | int nohead; | 146 | int nohead; |
147 | char *sort; | 147 | char *sort; |
148 | int showmsg; | 148 | int showmsg; |
149 | int ssdiff; | 149 | int ssdiff; |
150 | int show_all; | 150 | int show_all; |
151 | int context; | 151 | int context; |
152 | int ignorews; | 152 | int ignorews; |
153 | char *vpath; | 153 | char *vpath; |
154 | }; | 154 | }; |
155 | 155 | ||
156 | struct cgit_config { | 156 | struct cgit_config { |
157 | char *agefile; | 157 | char *agefile; |
158 | char *cache_root; | 158 | char *cache_root; |
159 | char *clone_prefix; | 159 | char *clone_prefix; |
160 | char *css; | 160 | char *css; |
161 | char *favicon; | 161 | char *favicon; |
162 | char *footer; | 162 | char *footer; |
163 | char *head_include; | 163 | char *head_include; |
164 | char *header; | 164 | char *header; |
165 | char *index_header; | 165 | char *index_header; |
166 | char *index_info; | 166 | char *index_info; |
167 | char *logo; | 167 | char *logo; |
168 | char *logo_link; | 168 | char *logo_link; |
169 | char *module_link; | 169 | char *module_link; |
170 | char *project_list; | ||
170 | char *robots; | 171 | char *robots; |
171 | char *root_title; | 172 | char *root_title; |
172 | char *root_desc; | 173 | char *root_desc; |
173 | char *root_readme; | 174 | char *root_readme; |
174 | char *script_name; | 175 | char *script_name; |
175 | char *section; | 176 | char *section; |
176 | char *virtual_root; | 177 | char *virtual_root; |
177 | int cache_size; | 178 | int cache_size; |
178 | int cache_dynamic_ttl; | 179 | int cache_dynamic_ttl; |
179 | int cache_max_create_time; | 180 | int cache_max_create_time; |
180 | int cache_repo_ttl; | 181 | int cache_repo_ttl; |
181 | int cache_root_ttl; | 182 | int cache_root_ttl; |
182 | int cache_scanrc_ttl; | 183 | int cache_scanrc_ttl; |
183 | int cache_static_ttl; | 184 | int cache_static_ttl; |
184 | int embedded; | 185 | int embedded; |
185 | int enable_filter_overrides; | 186 | int enable_filter_overrides; |
187 | int enable_gitweb_owner; | ||
186 | int enable_index_links; | 188 | int enable_index_links; |
187 | int enable_log_filecount; | 189 | int enable_log_filecount; |
188 | int enable_log_linecount; | 190 | int enable_log_linecount; |
189 | int enable_remote_branches; | 191 | int enable_remote_branches; |
190 | int enable_subject_links; | 192 | int enable_subject_links; |
191 | int enable_tree_linenumbers; | 193 | int enable_tree_linenumbers; |
192 | int local_time; | 194 | int local_time; |
193 | int max_atom_items; | 195 | int max_atom_items; |
194 | int max_repo_count; | 196 | int max_repo_count; |
195 | int max_commit_count; | 197 | int max_commit_count; |
196 | int max_lock_attempts; | 198 | int max_lock_attempts; |
197 | int max_msg_len; | 199 | int max_msg_len; |
198 | int max_repodesc_len; | 200 | int max_repodesc_len; |
199 | int max_blob_size; | 201 | int max_blob_size; |
200 | int max_stats; | 202 | int max_stats; |
201 | int nocache; | 203 | int nocache; |
202 | int noplainemail; | 204 | int noplainemail; |
203 | int noheader; | 205 | int noheader; |
204 | int renamelimit; | 206 | int renamelimit; |
207 | int remove_suffix; | ||
205 | int snapshots; | 208 | int snapshots; |
206 | int summary_branches; | 209 | int summary_branches; |
207 | int summary_log; | 210 | int summary_log; |
208 | int summary_tags; | 211 | int summary_tags; |
209 | int ssdiff; | 212 | int ssdiff; |
210 | struct string_list mimetypes; | 213 | struct string_list mimetypes; |
211 | struct cgit_filter *about_filter; | 214 | struct cgit_filter *about_filter; |
212 | struct cgit_filter *commit_filter; | 215 | struct cgit_filter *commit_filter; |
213 | struct cgit_filter *source_filter; | 216 | struct cgit_filter *source_filter; |
214 | }; | 217 | }; |
215 | 218 | ||
216 | struct cgit_page { | 219 | struct cgit_page { |
217 | time_t modified; | 220 | time_t modified; |
218 | time_t expires; | 221 | time_t expires; |
219 | size_t size; | 222 | size_t size; |
220 | char *mimetype; | 223 | char *mimetype; |
221 | char *charset; | 224 | char *charset; |
222 | char *filename; | 225 | char *filename; |
223 | char *etag; | 226 | char *etag; |
224 | char *title; | 227 | char *title; |
225 | int status; | 228 | int status; |
226 | char *statusmsg; | 229 | char *statusmsg; |
227 | }; | 230 | }; |
228 | 231 | ||
229 | struct cgit_environment { | 232 | struct cgit_environment { |
230 | char *cgit_config; | 233 | char *cgit_config; |
231 | char *http_host; | 234 | char *http_host; |
232 | char *https; | 235 | char *https; |
233 | char *no_http; | 236 | char *no_http; |
234 | char *path_info; | 237 | char *path_info; |
235 | char *query_string; | 238 | char *query_string; |
236 | char *request_method; | 239 | char *request_method; |
237 | char *script_name; | 240 | char *script_name; |
238 | char *server_name; | 241 | char *server_name; |
239 | char *server_port; | 242 | char *server_port; |
240 | }; | 243 | }; |
241 | 244 | ||
242 | struct cgit_context { | 245 | struct cgit_context { |
243 | struct cgit_environment env; | 246 | struct cgit_environment env; |
244 | struct cgit_query qry; | 247 | struct cgit_query qry; |
245 | struct cgit_config cfg; | 248 | struct cgit_config cfg; |
246 | struct cgit_repo *repo; | 249 | struct cgit_repo *repo; |
247 | struct cgit_page page; | 250 | struct cgit_page page; |
248 | }; | 251 | }; |
249 | 252 | ||
250 | struct cgit_snapshot_format { | 253 | struct cgit_snapshot_format { |
251 | const char *suffix; | 254 | const char *suffix; |
252 | const char *mimetype; | 255 | const char *mimetype; |
253 | write_archive_fn_t write_func; | 256 | write_archive_fn_t write_func; |
254 | int bit; | 257 | int bit; |
255 | }; | 258 | }; |
256 | 259 | ||
257 | extern const char *cgit_version; | 260 | extern const char *cgit_version; |
258 | 261 | ||
259 | extern struct cgit_repolist cgit_repolist; | 262 | extern struct cgit_repolist cgit_repolist; |
260 | extern struct cgit_context ctx; | 263 | extern struct cgit_context ctx; |
261 | extern const struct cgit_snapshot_format cgit_snapshot_formats[]; | 264 | extern const struct cgit_snapshot_format cgit_snapshot_formats[]; |
262 | 265 | ||
263 | extern struct cgit_repo *cgit_add_repo(const char *url); | 266 | extern struct cgit_repo *cgit_add_repo(const char *url); |
264 | extern struct cgit_repo *cgit_get_repoinfo(const char *url); | 267 | extern struct cgit_repo *cgit_get_repoinfo(const char *url); |
265 | extern void cgit_repo_config_cb(const char *name, const char *value); | 268 | extern void cgit_repo_config_cb(const char *name, const char *value); |
266 | 269 | ||
267 | extern int chk_zero(int result, char *msg); | 270 | extern int chk_zero(int result, char *msg); |
268 | extern int chk_positive(int result, char *msg); | 271 | extern int chk_positive(int result, char *msg); |