|
diff --git a/cgit.h b/cgit.h index ee8c716..a3b6535 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -200,25 +200,32 @@ extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, |
200 | int flags, void *cb_data); |
200 | int flags, void *cb_data); |
201 | |
201 | |
202 | extern void *cgit_free_commitinfo(struct commitinfo *info); |
202 | extern void *cgit_free_commitinfo(struct commitinfo *info); |
203 | |
203 | |
204 | extern int cgit_diff_files(const unsigned char *old_sha1, |
204 | extern int cgit_diff_files(const unsigned char *old_sha1, |
205 | const unsigned char *new_sha1, |
205 | const unsigned char *new_sha1, |
206 | linediff_fn fn); |
206 | linediff_fn fn); |
207 | |
207 | |
208 | extern void cgit_diff_tree(const unsigned char *old_sha1, |
208 | extern void cgit_diff_tree(const unsigned char *old_sha1, |
209 | const unsigned char *new_sha1, |
209 | const unsigned char *new_sha1, |
210 | filepair_fn fn, const char *prefix); |
210 | filepair_fn fn, const char *prefix); |
211 | |
211 | |
212 | extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); |
212 | extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); |
213 | |
213 | |
214 | extern char *fmt(const char *format,...); |
214 | extern char *fmt(const char *format,...); |
215 | |
215 | |
216 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
216 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
217 | extern struct taginfo *cgit_parse_tag(struct tag *tag); |
217 | extern struct taginfo *cgit_parse_tag(struct tag *tag); |
218 | extern void cgit_parse_url(const char *url); |
218 | extern void cgit_parse_url(const char *url); |
219 | |
219 | |
220 | extern const char *cgit_repobasename(const char *reponame); |
220 | extern const char *cgit_repobasename(const char *reponame); |
221 | |
221 | |
222 | extern int cgit_parse_snapshots_mask(const char *str); |
222 | extern int cgit_parse_snapshots_mask(const char *str); |
223 | |
223 | |
| |
224 | /* libgit.a either links against or compiles its own implementation of |
| |
225 | * strcasestr(), and we'd like to reuse it. Simply re-declaring it |
| |
226 | * seems to do the trick. |
| |
227 | */ |
| |
228 | extern char *strcasestr(const char *haystack, const char *needle); |
| |
229 | |
| |
230 | |
224 | #endif /* CGIT_H */ |
231 | #endif /* CGIT_H */ |
|