Unidiff1 files changed, 1 insertions, 0 deletions
|
diff --git a/cgit.h b/cgit.h index 1972d75..d18d9ca 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -64,128 +64,129 @@ struct cgit_repo { |
64 | |
64 | |
65 | struct cgit_repolist { |
65 | struct cgit_repolist { |
66 | int length; |
66 | int length; |
67 | int count; |
67 | int count; |
68 | struct cgit_repo *repos; |
68 | struct cgit_repo *repos; |
69 | }; |
69 | }; |
70 | |
70 | |
71 | struct commitinfo { |
71 | struct commitinfo { |
72 | struct commit *commit; |
72 | struct commit *commit; |
73 | char *author; |
73 | char *author; |
74 | char *author_email; |
74 | char *author_email; |
75 | unsigned long author_date; |
75 | unsigned long author_date; |
76 | char *committer; |
76 | char *committer; |
77 | char *committer_email; |
77 | char *committer_email; |
78 | unsigned long committer_date; |
78 | unsigned long committer_date; |
79 | char *subject; |
79 | char *subject; |
80 | char *msg; |
80 | char *msg; |
81 | char *msg_encoding; |
81 | char *msg_encoding; |
82 | }; |
82 | }; |
83 | |
83 | |
84 | struct taginfo { |
84 | struct taginfo { |
85 | char *tagger; |
85 | char *tagger; |
86 | char *tagger_email; |
86 | char *tagger_email; |
87 | int tagger_date; |
87 | int tagger_date; |
88 | char *msg; |
88 | char *msg; |
89 | }; |
89 | }; |
90 | |
90 | |
91 | struct refinfo { |
91 | struct refinfo { |
92 | const char *refname; |
92 | const char *refname; |
93 | struct object *object; |
93 | struct object *object; |
94 | union { |
94 | union { |
95 | struct taginfo *tag; |
95 | struct taginfo *tag; |
96 | struct commitinfo *commit; |
96 | struct commitinfo *commit; |
97 | }; |
97 | }; |
98 | }; |
98 | }; |
99 | |
99 | |
100 | struct reflist { |
100 | struct reflist { |
101 | struct refinfo **refs; |
101 | struct refinfo **refs; |
102 | int alloc; |
102 | int alloc; |
103 | int count; |
103 | int count; |
104 | }; |
104 | }; |
105 | |
105 | |
106 | struct cgit_query { |
106 | struct cgit_query { |
107 | int has_symref; |
107 | int has_symref; |
108 | int has_sha1; |
108 | int has_sha1; |
109 | char *raw; |
109 | char *raw; |
110 | char *repo; |
110 | char *repo; |
111 | char *page; |
111 | char *page; |
112 | char *search; |
112 | char *search; |
113 | char *grep; |
113 | char *grep; |
114 | char *head; |
114 | char *head; |
115 | char *sha1; |
115 | char *sha1; |
116 | char *sha2; |
116 | char *sha2; |
117 | char *path; |
117 | char *path; |
118 | char *name; |
118 | char *name; |
119 | char *mimetype; |
119 | char *mimetype; |
120 | int ofs; |
120 | int ofs; |
121 | }; |
121 | }; |
122 | |
122 | |
123 | struct cgit_config { |
123 | struct cgit_config { |
124 | char *agefile; |
124 | char *agefile; |
125 | char *cache_root; |
125 | char *cache_root; |
126 | char *clone_prefix; |
126 | char *clone_prefix; |
127 | char *css; |
127 | char *css; |
| |
128 | char *footer; |
128 | char *index_header; |
129 | char *index_header; |
129 | char *index_info; |
130 | char *index_info; |
130 | char *logo; |
131 | char *logo; |
131 | char *logo_link; |
132 | char *logo_link; |
132 | char *module_link; |
133 | char *module_link; |
133 | char *repo_group; |
134 | char *repo_group; |
134 | char *robots; |
135 | char *robots; |
135 | char *root_title; |
136 | char *root_title; |
136 | char *root_desc; |
137 | char *root_desc; |
137 | char *root_readme; |
138 | char *root_readme; |
138 | char *script_name; |
139 | char *script_name; |
139 | char *virtual_root; |
140 | char *virtual_root; |
140 | int cache_size; |
141 | int cache_size; |
141 | int cache_dynamic_ttl; |
142 | int cache_dynamic_ttl; |
142 | int cache_max_create_time; |
143 | int cache_max_create_time; |
143 | int cache_repo_ttl; |
144 | int cache_repo_ttl; |
144 | int cache_root_ttl; |
145 | int cache_root_ttl; |
145 | int cache_static_ttl; |
146 | int cache_static_ttl; |
146 | int enable_index_links; |
147 | int enable_index_links; |
147 | int enable_log_filecount; |
148 | int enable_log_filecount; |
148 | int enable_log_linecount; |
149 | int enable_log_linecount; |
149 | int max_repo_count; |
150 | int max_repo_count; |
150 | int max_commit_count; |
151 | int max_commit_count; |
151 | int max_lock_attempts; |
152 | int max_lock_attempts; |
152 | int max_msg_len; |
153 | int max_msg_len; |
153 | int max_repodesc_len; |
154 | int max_repodesc_len; |
154 | int nocache; |
155 | int nocache; |
155 | int renamelimit; |
156 | int renamelimit; |
156 | int snapshots; |
157 | int snapshots; |
157 | int summary_branches; |
158 | int summary_branches; |
158 | int summary_log; |
159 | int summary_log; |
159 | int summary_tags; |
160 | int summary_tags; |
160 | }; |
161 | }; |
161 | |
162 | |
162 | struct cgit_page { |
163 | struct cgit_page { |
163 | time_t modified; |
164 | time_t modified; |
164 | time_t expires; |
165 | time_t expires; |
165 | char *mimetype; |
166 | char *mimetype; |
166 | char *charset; |
167 | char *charset; |
167 | char *filename; |
168 | char *filename; |
168 | char *title; |
169 | char *title; |
169 | }; |
170 | }; |
170 | |
171 | |
171 | struct cgit_context { |
172 | struct cgit_context { |
172 | struct cgit_query qry; |
173 | struct cgit_query qry; |
173 | struct cgit_config cfg; |
174 | struct cgit_config cfg; |
174 | struct cgit_repo *repo; |
175 | struct cgit_repo *repo; |
175 | struct cgit_page page; |
176 | struct cgit_page page; |
176 | }; |
177 | }; |
177 | |
178 | |
178 | struct cgit_snapshot_format { |
179 | struct cgit_snapshot_format { |
179 | const char *suffix; |
180 | const char *suffix; |
180 | const char *mimetype; |
181 | const char *mimetype; |
181 | write_archive_fn_t write_func; |
182 | write_archive_fn_t write_func; |
182 | int bit; |
183 | int bit; |
183 | }; |
184 | }; |
184 | |
185 | |
185 | extern const char *cgit_version; |
186 | extern const char *cgit_version; |
186 | |
187 | |
187 | extern struct cgit_repolist cgit_repolist; |
188 | extern struct cgit_repolist cgit_repolist; |
188 | extern struct cgit_context ctx; |
189 | extern struct cgit_context ctx; |
189 | extern const struct cgit_snapshot_format cgit_snapshot_formats[]; |
190 | extern const struct cgit_snapshot_format cgit_snapshot_formats[]; |
190 | |
191 | |
191 | extern struct cgit_repo *cgit_add_repo(const char *url); |
192 | extern struct cgit_repo *cgit_add_repo(const char *url); |
|