Unidiff1 files changed, 1 insertions, 0 deletions
|
diff --git a/cgit.h b/cgit.h index 4fe94c6..4942b96 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -90,96 +90,97 @@ struct taginfo { |
90 | unsigned long tagger_date; |
90 | unsigned long tagger_date; |
91 | char *msg; |
91 | char *msg; |
92 | }; |
92 | }; |
93 | |
93 | |
94 | struct refinfo { |
94 | struct refinfo { |
95 | const char *refname; |
95 | const char *refname; |
96 | struct object *object; |
96 | struct object *object; |
97 | union { |
97 | union { |
98 | struct taginfo *tag; |
98 | struct taginfo *tag; |
99 | struct commitinfo *commit; |
99 | struct commitinfo *commit; |
100 | }; |
100 | }; |
101 | }; |
101 | }; |
102 | |
102 | |
103 | struct reflist { |
103 | struct reflist { |
104 | struct refinfo **refs; |
104 | struct refinfo **refs; |
105 | int alloc; |
105 | int alloc; |
106 | int count; |
106 | int count; |
107 | }; |
107 | }; |
108 | |
108 | |
109 | struct cgit_query { |
109 | struct cgit_query { |
110 | int has_symref; |
110 | int has_symref; |
111 | int has_sha1; |
111 | int has_sha1; |
112 | char *raw; |
112 | char *raw; |
113 | char *repo; |
113 | char *repo; |
114 | char *page; |
114 | char *page; |
115 | char *search; |
115 | char *search; |
116 | char *grep; |
116 | char *grep; |
117 | char *head; |
117 | char *head; |
118 | char *sha1; |
118 | char *sha1; |
119 | char *sha2; |
119 | char *sha2; |
120 | char *path; |
120 | char *path; |
121 | char *name; |
121 | char *name; |
122 | char *mimetype; |
122 | char *mimetype; |
123 | char *url; |
123 | char *url; |
124 | char *period; |
124 | char *period; |
125 | int ofs; |
125 | int ofs; |
126 | int nohead; |
126 | int nohead; |
127 | char *sort; |
127 | char *sort; |
128 | int showmsg; |
128 | int showmsg; |
129 | }; |
129 | }; |
130 | |
130 | |
131 | struct cgit_config { |
131 | struct cgit_config { |
132 | char *agefile; |
132 | char *agefile; |
133 | char *cache_root; |
133 | char *cache_root; |
134 | char *clone_prefix; |
134 | char *clone_prefix; |
135 | char *css; |
135 | char *css; |
136 | char *favicon; |
136 | char *favicon; |
137 | char *footer; |
137 | char *footer; |
| |
138 | char *header; |
138 | char *index_header; |
139 | char *index_header; |
139 | char *index_info; |
140 | char *index_info; |
140 | char *logo; |
141 | char *logo; |
141 | char *logo_link; |
142 | char *logo_link; |
142 | char *module_link; |
143 | char *module_link; |
143 | char *repo_group; |
144 | char *repo_group; |
144 | char *robots; |
145 | char *robots; |
145 | char *root_title; |
146 | char *root_title; |
146 | char *root_desc; |
147 | char *root_desc; |
147 | char *root_readme; |
148 | char *root_readme; |
148 | char *script_name; |
149 | char *script_name; |
149 | char *virtual_root; |
150 | char *virtual_root; |
150 | int cache_size; |
151 | int cache_size; |
151 | int cache_dynamic_ttl; |
152 | int cache_dynamic_ttl; |
152 | int cache_max_create_time; |
153 | int cache_max_create_time; |
153 | int cache_repo_ttl; |
154 | int cache_repo_ttl; |
154 | int cache_root_ttl; |
155 | int cache_root_ttl; |
155 | int cache_static_ttl; |
156 | int cache_static_ttl; |
156 | int enable_index_links; |
157 | int enable_index_links; |
157 | int enable_log_filecount; |
158 | int enable_log_filecount; |
158 | int enable_log_linecount; |
159 | int enable_log_linecount; |
159 | int local_time; |
160 | int local_time; |
160 | int max_repo_count; |
161 | int max_repo_count; |
161 | int max_commit_count; |
162 | int max_commit_count; |
162 | int max_lock_attempts; |
163 | int max_lock_attempts; |
163 | int max_msg_len; |
164 | int max_msg_len; |
164 | int max_repodesc_len; |
165 | int max_repodesc_len; |
165 | int max_stats; |
166 | int max_stats; |
166 | int nocache; |
167 | int nocache; |
167 | int renamelimit; |
168 | int renamelimit; |
168 | int snapshots; |
169 | int snapshots; |
169 | int summary_branches; |
170 | int summary_branches; |
170 | int summary_log; |
171 | int summary_log; |
171 | int summary_tags; |
172 | int summary_tags; |
172 | }; |
173 | }; |
173 | |
174 | |
174 | struct cgit_page { |
175 | struct cgit_page { |
175 | time_t modified; |
176 | time_t modified; |
176 | time_t expires; |
177 | time_t expires; |
177 | size_t size; |
178 | size_t size; |
178 | char *mimetype; |
179 | char *mimetype; |
179 | char *charset; |
180 | char *charset; |
180 | char *filename; |
181 | char *filename; |
181 | char *title; |
182 | char *title; |
182 | }; |
183 | }; |
183 | |
184 | |
184 | struct cgit_context { |
185 | struct cgit_context { |
185 | struct cgit_query qry; |
186 | struct cgit_query qry; |
|