author | Lars Hjemli <hjemli@gmail.com> | 2008-03-25 01:00:09 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-03-25 01:00:09 (UTC) |
commit | dc3282f0baa14949439593729a45fbe143e3622c (patch) (unidiff) | |
tree | 2eb7eabeb11c4a1c1e132d396ac5c621caf48414 /cgit.h | |
parent | c60781d677ee3b2e53b1f3078fef763622e5effe (diff) | |
download | cgit-dc3282f0baa14949439593729a45fbe143e3622c.zip cgit-dc3282f0baa14949439593729a45fbe143e3622c.tar.gz cgit-dc3282f0baa14949439593729a45fbe143e3622c.tar.bz2 |
Remove global and obsolete cgit_cmd
This variable was obsoleted by cmd.c.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -168,49 +168,48 @@ struct cgit_page { | |||
168 | char *charset; | 168 | char *charset; |
169 | char *filename; | 169 | char *filename; |
170 | char *title; | 170 | char *title; |
171 | }; | 171 | }; |
172 | 172 | ||
173 | struct cgit_context { | 173 | struct cgit_context { |
174 | struct cgit_query qry; | 174 | struct cgit_query qry; |
175 | struct cgit_config cfg; | 175 | struct cgit_config cfg; |
176 | struct cgit_repo *repo; | 176 | struct cgit_repo *repo; |
177 | struct cgit_page page; | 177 | struct cgit_page page; |
178 | }; | 178 | }; |
179 | 179 | ||
180 | struct cgit_snapshot_format { | 180 | struct cgit_snapshot_format { |
181 | const char *suffix; | 181 | const char *suffix; |
182 | const char *mimetype; | 182 | const char *mimetype; |
183 | write_archive_fn_t write_func; | 183 | write_archive_fn_t write_func; |
184 | int bit; | 184 | int bit; |
185 | }; | 185 | }; |
186 | 186 | ||
187 | extern const char *cgit_version; | 187 | extern const char *cgit_version; |
188 | 188 | ||
189 | extern struct cgit_repolist cgit_repolist; | 189 | extern struct cgit_repolist cgit_repolist; |
190 | extern struct cgit_context ctx; | 190 | extern struct cgit_context ctx; |
191 | extern const struct cgit_snapshot_format cgit_snapshot_formats[]; | 191 | extern const struct cgit_snapshot_format cgit_snapshot_formats[]; |
192 | extern int cgit_cmd; | ||
193 | 192 | ||
194 | extern struct cgit_repo *cgit_add_repo(const char *url); | 193 | extern struct cgit_repo *cgit_add_repo(const char *url); |
195 | extern struct cgit_repo *cgit_get_repoinfo(const char *url); | 194 | extern struct cgit_repo *cgit_get_repoinfo(const char *url); |
196 | extern void cgit_repo_config_cb(const char *name, const char *value); | 195 | extern void cgit_repo_config_cb(const char *name, const char *value); |
197 | 196 | ||
198 | extern int chk_zero(int result, char *msg); | 197 | extern int chk_zero(int result, char *msg); |
199 | extern int chk_positive(int result, char *msg); | 198 | extern int chk_positive(int result, char *msg); |
200 | extern int chk_non_negative(int result, char *msg); | 199 | extern int chk_non_negative(int result, char *msg); |
201 | 200 | ||
202 | extern int hextoint(char c); | 201 | extern int hextoint(char c); |
203 | extern char *trim_end(const char *str, char c); | 202 | extern char *trim_end(const char *str, char c); |
204 | extern char *strlpart(char *txt, int maxlen); | 203 | extern char *strlpart(char *txt, int maxlen); |
205 | extern char *strrpart(char *txt, int maxlen); | 204 | extern char *strrpart(char *txt, int maxlen); |
206 | 205 | ||
207 | extern void cgit_add_ref(struct reflist *list, struct refinfo *ref); | 206 | extern void cgit_add_ref(struct reflist *list, struct refinfo *ref); |
208 | extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, | 207 | extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, |
209 | int flags, void *cb_data); | 208 | int flags, void *cb_data); |
210 | 209 | ||
211 | extern void *cgit_free_commitinfo(struct commitinfo *info); | 210 | extern void *cgit_free_commitinfo(struct commitinfo *info); |
212 | 211 | ||
213 | extern int cgit_diff_files(const unsigned char *old_sha1, | 212 | extern int cgit_diff_files(const unsigned char *old_sha1, |
214 | const unsigned char *new_sha1, | 213 | const unsigned char *new_sha1, |
215 | linediff_fn fn); | 214 | linediff_fn fn); |
216 | 215 | ||