Unidiff1 files changed, 1 insertions, 0 deletions
|
diff --git a/cgit.h b/cgit.h index f9cf0df..438301d 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -154,64 +154,65 @@ struct cgit_config { |
154 | char *module_link; |
154 | char *module_link; |
155 | char *repo_group; |
155 | char *repo_group; |
156 | char *robots; |
156 | char *robots; |
157 | char *root_title; |
157 | char *root_title; |
158 | char *root_desc; |
158 | char *root_desc; |
159 | char *root_readme; |
159 | char *root_readme; |
160 | char *script_name; |
160 | char *script_name; |
161 | char *virtual_root; |
161 | char *virtual_root; |
162 | int cache_size; |
162 | int cache_size; |
163 | int cache_dynamic_ttl; |
163 | int cache_dynamic_ttl; |
164 | int cache_max_create_time; |
164 | int cache_max_create_time; |
165 | int cache_repo_ttl; |
165 | int cache_repo_ttl; |
166 | int cache_root_ttl; |
166 | int cache_root_ttl; |
167 | int cache_static_ttl; |
167 | int cache_static_ttl; |
168 | int embedded; |
168 | int embedded; |
169 | int enable_index_links; |
169 | int enable_index_links; |
170 | int enable_log_filecount; |
170 | int enable_log_filecount; |
171 | int enable_log_linecount; |
171 | int enable_log_linecount; |
172 | int local_time; |
172 | int local_time; |
173 | int max_repo_count; |
173 | int max_repo_count; |
174 | int max_commit_count; |
174 | int max_commit_count; |
175 | int max_lock_attempts; |
175 | int max_lock_attempts; |
176 | int max_msg_len; |
176 | int max_msg_len; |
177 | int max_repodesc_len; |
177 | int max_repodesc_len; |
178 | int max_stats; |
178 | int max_stats; |
179 | int nocache; |
179 | int nocache; |
180 | int noheader; |
180 | int noheader; |
181 | int renamelimit; |
181 | int renamelimit; |
182 | int snapshots; |
182 | int snapshots; |
183 | int summary_branches; |
183 | int summary_branches; |
184 | int summary_log; |
184 | int summary_log; |
185 | int summary_tags; |
185 | int summary_tags; |
| |
186 | struct cgit_filter *commit_filter; |
186 | struct cgit_filter *source_filter; |
187 | struct cgit_filter *source_filter; |
187 | }; |
188 | }; |
188 | |
189 | |
189 | struct cgit_page { |
190 | struct cgit_page { |
190 | time_t modified; |
191 | time_t modified; |
191 | time_t expires; |
192 | time_t expires; |
192 | size_t size; |
193 | size_t size; |
193 | char *mimetype; |
194 | char *mimetype; |
194 | char *charset; |
195 | char *charset; |
195 | char *filename; |
196 | char *filename; |
196 | char *etag; |
197 | char *etag; |
197 | char *title; |
198 | char *title; |
198 | int status; |
199 | int status; |
199 | char *statusmsg; |
200 | char *statusmsg; |
200 | }; |
201 | }; |
201 | |
202 | |
202 | struct cgit_context { |
203 | struct cgit_context { |
203 | struct cgit_query qry; |
204 | struct cgit_query qry; |
204 | struct cgit_config cfg; |
205 | struct cgit_config cfg; |
205 | struct cgit_repo *repo; |
206 | struct cgit_repo *repo; |
206 | struct cgit_page page; |
207 | struct cgit_page page; |
207 | }; |
208 | }; |
208 | |
209 | |
209 | struct cgit_snapshot_format { |
210 | struct cgit_snapshot_format { |
210 | const char *suffix; |
211 | const char *suffix; |
211 | const char *mimetype; |
212 | const char *mimetype; |
212 | write_archive_fn_t write_func; |
213 | write_archive_fn_t write_func; |
213 | int bit; |
214 | int bit; |
214 | }; |
215 | }; |
215 | |
216 | |
216 | extern const char *cgit_version; |
217 | extern const char *cgit_version; |
217 | |
218 | |
|