summaryrefslogtreecommitdiffabout
path: root/cgit.h
authorLars Hjemli <hjemli@gmail.com>2008-03-24 16:26:08 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-03-24 16:26:08 (UTC)
commit163037e79c6cde1073d555dbeae2a095298e6101 (patch) (unidiff)
tree37f36b95772eff04683a7f7efc1c5c369b7bf905 /cgit.h
parenta4d1ca1dc6ff8171694d9e2280b6075a1beced0c (diff)
downloadcgit-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>
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/cgit.h b/cgit.h
index c1a231d..b58676b 100644
--- a/cgit.h
+++ b/cgit.h
@@ -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
187extern const char *cgit_version; 187extern const char *cgit_version;
188 188
189extern struct cgit_repolist cgit_repolist; 189extern struct cgit_repolist cgit_repolist;
190extern struct cgit_context ctx; 190extern struct cgit_context ctx;
191extern const struct cgit_snapshot_format cgit_snapshot_formats[]; 191extern const struct cgit_snapshot_format cgit_snapshot_formats[];
192extern int cgit_cmd; 192extern int cgit_cmd;
193 193
194extern void cgit_prepare_context(struct cgit_context *ctx); 194extern struct cgit_repo *cgit_add_repo(const char *url);
195extern struct cgit_repo *cgit_get_repoinfo(const char *url); 195extern struct cgit_repo *cgit_get_repoinfo(const char *url);
196extern void cgit_global_config_cb(const char *name, const char *value);
197extern void cgit_repo_config_cb(const char *name, const char *value); 196extern void cgit_repo_config_cb(const char *name, const char *value);
198extern void cgit_querystring_cb(const char *name, const char *value);
199 197
200extern int chk_zero(int result, char *msg); 198extern int chk_zero(int result, char *msg);
201extern int chk_positive(int result, char *msg); 199extern int chk_positive(int result, char *msg);
202extern int chk_non_negative(int result, char *msg); 200extern int chk_non_negative(int result, char *msg);
203 201
204extern int hextoint(char c); 202extern int hextoint(char c);
205extern char *trim_end(const char *str, char c); 203extern char *trim_end(const char *str, char c);
206extern char *strlpart(char *txt, int maxlen); 204extern char *strlpart(char *txt, int maxlen);
207extern char *strrpart(char *txt, int maxlen); 205extern char *strrpart(char *txt, int maxlen);
208 206
209extern void cgit_add_ref(struct reflist *list, struct refinfo *ref); 207extern void cgit_add_ref(struct reflist *list, struct refinfo *ref);
210extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, 208extern int cgit_refs_cb(const char *refname, const unsigned char *sha1,