Unidiff1 files changed, 2 insertions, 0 deletions
|
diff --git a/cgit.h b/cgit.h index f10ba05..b8f4850 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -52,48 +52,49 @@ struct cgit_filter { |
52 | char *cmd; |
52 | char *cmd; |
53 | char **argv; |
53 | char **argv; |
54 | int old_stdout; |
54 | int old_stdout; |
55 | int pipe_fh[2]; |
55 | int pipe_fh[2]; |
56 | int pid; |
56 | int pid; |
57 | int exitstatus; |
57 | int exitstatus; |
58 | }; |
58 | }; |
59 | |
59 | |
60 | struct cgit_repo { |
60 | struct cgit_repo { |
61 | char *url; |
61 | char *url; |
62 | char *name; |
62 | char *name; |
63 | char *path; |
63 | char *path; |
64 | char *desc; |
64 | char *desc; |
65 | char *owner; |
65 | char *owner; |
66 | char *defbranch; |
66 | char *defbranch; |
67 | char *group; |
67 | char *group; |
68 | char *module_link; |
68 | char *module_link; |
69 | char *readme; |
69 | char *readme; |
70 | char *clone_url; |
70 | char *clone_url; |
71 | int snapshots; |
71 | int snapshots; |
72 | int enable_log_filecount; |
72 | int enable_log_filecount; |
73 | int enable_log_linecount; |
73 | int enable_log_linecount; |
74 | int max_stats; |
74 | int max_stats; |
75 | time_t mtime; |
75 | time_t mtime; |
| |
76 | struct cgit_filter *about_filter; |
76 | struct cgit_filter *commit_filter; |
77 | struct cgit_filter *commit_filter; |
77 | struct cgit_filter *source_filter; |
78 | struct cgit_filter *source_filter; |
78 | }; |
79 | }; |
79 | |
80 | |
80 | struct cgit_repolist { |
81 | struct cgit_repolist { |
81 | int length; |
82 | int length; |
82 | int count; |
83 | int count; |
83 | struct cgit_repo *repos; |
84 | struct cgit_repo *repos; |
84 | }; |
85 | }; |
85 | |
86 | |
86 | struct commitinfo { |
87 | struct commitinfo { |
87 | struct commit *commit; |
88 | struct commit *commit; |
88 | char *author; |
89 | char *author; |
89 | char *author_email; |
90 | char *author_email; |
90 | unsigned long author_date; |
91 | unsigned long author_date; |
91 | char *committer; |
92 | char *committer; |
92 | char *committer_email; |
93 | char *committer_email; |
93 | unsigned long committer_date; |
94 | unsigned long committer_date; |
94 | char *subject; |
95 | char *subject; |
95 | char *msg; |
96 | char *msg; |
96 | char *msg_encoding; |
97 | char *msg_encoding; |
97 | }; |
98 | }; |
98 | |
99 | |
99 | struct taginfo { |
100 | struct taginfo { |
@@ -164,48 +165,49 @@ struct cgit_config { |
164 | int cache_size; |
165 | int cache_size; |
165 | int cache_dynamic_ttl; |
166 | int cache_dynamic_ttl; |
166 | int cache_max_create_time; |
167 | int cache_max_create_time; |
167 | int cache_repo_ttl; |
168 | int cache_repo_ttl; |
168 | int cache_root_ttl; |
169 | int cache_root_ttl; |
169 | int cache_static_ttl; |
170 | int cache_static_ttl; |
170 | int embedded; |
171 | int embedded; |
171 | int enable_index_links; |
172 | int enable_index_links; |
172 | int enable_log_filecount; |
173 | int enable_log_filecount; |
173 | int enable_log_linecount; |
174 | int enable_log_linecount; |
174 | int local_time; |
175 | int local_time; |
175 | int max_repo_count; |
176 | int max_repo_count; |
176 | int max_commit_count; |
177 | int max_commit_count; |
177 | int max_lock_attempts; |
178 | int max_lock_attempts; |
178 | int max_msg_len; |
179 | int max_msg_len; |
179 | int max_repodesc_len; |
180 | int max_repodesc_len; |
180 | int max_stats; |
181 | int max_stats; |
181 | int nocache; |
182 | int nocache; |
182 | int noheader; |
183 | int noheader; |
183 | int renamelimit; |
184 | int renamelimit; |
184 | int snapshots; |
185 | int snapshots; |
185 | int summary_branches; |
186 | int summary_branches; |
186 | int summary_log; |
187 | int summary_log; |
187 | int summary_tags; |
188 | int summary_tags; |
| |
189 | struct cgit_filter *about_filter; |
188 | struct cgit_filter *commit_filter; |
190 | struct cgit_filter *commit_filter; |
189 | struct cgit_filter *source_filter; |
191 | struct cgit_filter *source_filter; |
190 | }; |
192 | }; |
191 | |
193 | |
192 | struct cgit_page { |
194 | struct cgit_page { |
193 | time_t modified; |
195 | time_t modified; |
194 | time_t expires; |
196 | time_t expires; |
195 | size_t size; |
197 | size_t size; |
196 | char *mimetype; |
198 | char *mimetype; |
197 | char *charset; |
199 | char *charset; |
198 | char *filename; |
200 | char *filename; |
199 | char *etag; |
201 | char *etag; |
200 | char *title; |
202 | char *title; |
201 | int status; |
203 | int status; |
202 | char *statusmsg; |
204 | char *statusmsg; |
203 | }; |
205 | }; |
204 | |
206 | |
205 | struct cgit_context { |
207 | struct cgit_context { |
206 | struct cgit_query qry; |
208 | struct cgit_query qry; |
207 | struct cgit_config cfg; |
209 | struct cgit_config cfg; |
208 | struct cgit_repo *repo; |
210 | struct cgit_repo *repo; |
209 | struct cgit_page page; |
211 | struct cgit_page page; |
210 | }; |
212 | }; |
211 | |
213 | |
|