Unidiff1 files changed, 1 insertions, 0 deletions
|
diff --git a/cgit.h b/cgit.h index bbb404e..4fa5cf2 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -116,64 +116,65 @@ struct cgit_query { |
116 | char *sha2; |
116 | char *sha2; |
117 | char *path; |
117 | char *path; |
118 | char *name; |
118 | char *name; |
119 | int ofs; |
119 | int ofs; |
120 | }; |
120 | }; |
121 | |
121 | |
122 | struct cgit_config { |
122 | struct cgit_config { |
123 | char *agefile; |
123 | char *agefile; |
124 | char *cache_root; |
124 | char *cache_root; |
125 | char *clone_prefix; |
125 | char *clone_prefix; |
126 | char *css; |
126 | char *css; |
127 | char *index_header; |
127 | char *index_header; |
128 | char *index_info; |
128 | char *index_info; |
129 | char *logo; |
129 | char *logo; |
130 | char *logo_link; |
130 | char *logo_link; |
131 | char *module_link; |
131 | char *module_link; |
132 | char *repo_group; |
132 | char *repo_group; |
133 | char *robots; |
133 | char *robots; |
134 | char *root_title; |
134 | char *root_title; |
135 | char *root_desc; |
135 | char *root_desc; |
136 | char *root_readme; |
136 | char *root_readme; |
137 | char *script_name; |
137 | char *script_name; |
138 | char *virtual_root; |
138 | char *virtual_root; |
139 | int cache_size; |
139 | int cache_size; |
140 | int cache_dynamic_ttl; |
140 | int cache_dynamic_ttl; |
141 | int cache_max_create_time; |
141 | int cache_max_create_time; |
142 | int cache_repo_ttl; |
142 | int cache_repo_ttl; |
143 | int cache_root_ttl; |
143 | int cache_root_ttl; |
144 | int cache_static_ttl; |
144 | int cache_static_ttl; |
145 | int enable_index_links; |
145 | int enable_index_links; |
146 | int enable_log_filecount; |
146 | int enable_log_filecount; |
147 | int enable_log_linecount; |
147 | int enable_log_linecount; |
| |
148 | int max_repo_count; |
148 | int max_commit_count; |
149 | int max_commit_count; |
149 | int max_lock_attempts; |
150 | int max_lock_attempts; |
150 | int max_msg_len; |
151 | int max_msg_len; |
151 | int max_repodesc_len; |
152 | int max_repodesc_len; |
152 | int nocache; |
153 | int nocache; |
153 | int renamelimit; |
154 | int renamelimit; |
154 | int snapshots; |
155 | int snapshots; |
155 | int summary_branches; |
156 | int summary_branches; |
156 | int summary_log; |
157 | int summary_log; |
157 | int summary_tags; |
158 | int summary_tags; |
158 | }; |
159 | }; |
159 | |
160 | |
160 | struct cgit_page { |
161 | struct cgit_page { |
161 | time_t modified; |
162 | time_t modified; |
162 | time_t expires; |
163 | time_t expires; |
163 | char *mimetype; |
164 | char *mimetype; |
164 | char *charset; |
165 | char *charset; |
165 | char *filename; |
166 | char *filename; |
166 | char *title; |
167 | char *title; |
167 | }; |
168 | }; |
168 | |
169 | |
169 | struct cgit_context { |
170 | struct cgit_context { |
170 | struct cgit_query qry; |
171 | struct cgit_query qry; |
171 | struct cgit_config cfg; |
172 | struct cgit_config cfg; |
172 | struct cgit_repo *repo; |
173 | struct cgit_repo *repo; |
173 | struct cgit_page page; |
174 | struct cgit_page page; |
174 | }; |
175 | }; |
175 | |
176 | |
176 | struct cgit_snapshot_format { |
177 | struct cgit_snapshot_format { |
177 | const char *suffix; |
178 | const char *suffix; |
178 | const char *mimetype; |
179 | const char *mimetype; |
179 | write_archive_fn_t write_func; |
180 | write_archive_fn_t write_func; |
|