author | Lars Hjemli <hjemli@gmail.com> | 2008-03-24 16:26:08 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-03-24 16:26:08 (UTC) |
commit | 163037e79c6cde1073d555dbeae2a095298e6101 (patch) (unidiff) | |
tree | 37f36b95772eff04683a7f7efc1c5c369b7bf905 /cgit.h | |
parent | a4d1ca1dc6ff8171694d9e2280b6075a1beced0c (diff) | |
download | cgit-163037e79c6cde1073d555dbeae2a095298e6101.zip cgit-163037e79c6cde1073d555dbeae2a095298e6101.tar.gz cgit-163037e79c6cde1073d555dbeae2a095298e6101.tar.bz2 |
Move non-generic functions from shared.c to cgit.c
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -182,29 +182,27 @@ struct cgit_snapshot_format { | |||
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; | 192 | extern int cgit_cmd; |
193 | 193 | ||
194 | extern void cgit_prepare_context(struct cgit_context *ctx); | 194 | extern struct cgit_repo *cgit_add_repo(const char *url); |
195 | extern struct cgit_repo *cgit_get_repoinfo(const char *url); | 195 | extern struct cgit_repo *cgit_get_repoinfo(const char *url); |
196 | extern void cgit_global_config_cb(const char *name, const char *value); | ||
197 | extern void cgit_repo_config_cb(const char *name, const char *value); | 196 | extern void cgit_repo_config_cb(const char *name, const char *value); |
198 | extern void cgit_querystring_cb(const char *name, const char *value); | ||
199 | 197 | ||
200 | extern int chk_zero(int result, char *msg); | 198 | extern int chk_zero(int result, char *msg); |
201 | extern int chk_positive(int result, char *msg); | 199 | extern int chk_positive(int result, char *msg); |
202 | extern int chk_non_negative(int result, char *msg); | 200 | extern int chk_non_negative(int result, char *msg); |
203 | 201 | ||
204 | extern int hextoint(char c); | 202 | extern int hextoint(char c); |
205 | extern char *trim_end(const char *str, char c); | 203 | extern char *trim_end(const char *str, char c); |
206 | extern char *strlpart(char *txt, int maxlen); | 204 | extern char *strlpart(char *txt, int maxlen); |
207 | extern char *strrpart(char *txt, int maxlen); | 205 | extern char *strrpart(char *txt, int maxlen); |
208 | 206 | ||
209 | extern void cgit_add_ref(struct reflist *list, struct refinfo *ref); | 207 | extern void cgit_add_ref(struct reflist *list, struct refinfo *ref); |
210 | extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, | 208 | extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, |