author | Lars Hjemli <hjemli@gmail.com> | 2007-11-03 09:42:37 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-11-03 09:42:37 (UTC) |
commit | 51140311bb3b0d4d0e859d5045ffe4c74478f5fe (patch) (unidiff) | |
tree | 6575f174e32abd5f5d1f481e5f7f5978525ae416 /cgit.h | |
parent | df203a293e3ac19245f8761cf7c5808f8735f917 (diff) | |
download | cgit-51140311bb3b0d4d0e859d5045ffe4c74478f5fe.zip cgit-51140311bb3b0d4d0e859d5045ffe4c74478f5fe.tar.gz cgit-51140311bb3b0d4d0e859d5045ffe4c74478f5fe.tar.bz2 |
Add search parameters to cgit_log_link
This makes the [prev] and [next] links work correctly on search results.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -217,49 +217,50 @@ extern int html_include(const char *filename); | |||
217 | extern int cgit_read_config(const char *filename, configfn fn); | 217 | extern int cgit_read_config(const char *filename, configfn fn); |
218 | extern int cgit_parse_query(char *txt, configfn fn); | 218 | extern int cgit_parse_query(char *txt, configfn fn); |
219 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); | 219 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
220 | extern struct taginfo *cgit_parse_tag(struct tag *tag); | 220 | extern struct taginfo *cgit_parse_tag(struct tag *tag); |
221 | extern void cgit_parse_url(const char *url); | 221 | extern void cgit_parse_url(const char *url); |
222 | 222 | ||
223 | extern char *cache_safe_filename(const char *unsafe); | 223 | extern char *cache_safe_filename(const char *unsafe); |
224 | extern int cache_lock(struct cacheitem *item); | 224 | extern int cache_lock(struct cacheitem *item); |
225 | extern int cache_unlock(struct cacheitem *item); | 225 | extern int cache_unlock(struct cacheitem *item); |
226 | extern int cache_cancel_lock(struct cacheitem *item); | 226 | extern int cache_cancel_lock(struct cacheitem *item); |
227 | extern int cache_exist(struct cacheitem *item); | 227 | extern int cache_exist(struct cacheitem *item); |
228 | extern int cache_expired(struct cacheitem *item); | 228 | extern int cache_expired(struct cacheitem *item); |
229 | 229 | ||
230 | extern char *cgit_repourl(const char *reponame); | 230 | extern char *cgit_repourl(const char *reponame); |
231 | extern char *cgit_fileurl(const char *reponame, const char *pagename, | 231 | extern char *cgit_fileurl(const char *reponame, const char *pagename, |
232 | const char *filename, const char *query); | 232 | const char *filename, const char *query); |
233 | extern char *cgit_pageurl(const char *reponame, const char *pagename, | 233 | extern char *cgit_pageurl(const char *reponame, const char *pagename, |
234 | const char *query); | 234 | const char *query); |
235 | 235 | ||
236 | extern const char *cgit_repobasename(const char *reponame); | 236 | extern const char *cgit_repobasename(const char *reponame); |
237 | 237 | ||
238 | extern void cgit_tree_link(char *name, char *title, char *class, char *head, | 238 | extern void cgit_tree_link(char *name, char *title, char *class, char *head, |
239 | char *rev, char *path); | 239 | char *rev, char *path); |
240 | extern void cgit_log_link(char *name, char *title, char *class, char *head, | 240 | extern void cgit_log_link(char *name, char *title, char *class, char *head, |
241 | char *rev, char *path, int ofs); | 241 | char *rev, char *path, int ofs, char *grep, |
242 | char *pattern); | ||
242 | extern void cgit_commit_link(char *name, char *title, char *class, char *head, | 243 | extern void cgit_commit_link(char *name, char *title, char *class, char *head, |
243 | char *rev); | 244 | char *rev); |
244 | extern void cgit_refs_link(char *name, char *title, char *class, char *head, | 245 | extern void cgit_refs_link(char *name, char *title, char *class, char *head, |
245 | char *rev, char *path); | 246 | char *rev, char *path); |
246 | extern void cgit_snapshot_link(char *name, char *title, char *class, | 247 | extern void cgit_snapshot_link(char *name, char *title, char *class, |
247 | char *head, char *rev, char *archivename); | 248 | char *head, char *rev, char *archivename); |
248 | extern void cgit_diff_link(char *name, char *title, char *class, char *head, | 249 | extern void cgit_diff_link(char *name, char *title, char *class, char *head, |
249 | char *new_rev, char *old_rev, char *path); | 250 | char *new_rev, char *old_rev, char *path); |
250 | 251 | ||
251 | extern void cgit_object_link(struct object *obj); | 252 | extern void cgit_object_link(struct object *obj); |
252 | 253 | ||
253 | extern void cgit_print_error(char *msg); | 254 | extern void cgit_print_error(char *msg); |
254 | extern void cgit_print_date(time_t secs, char *format); | 255 | extern void cgit_print_date(time_t secs, char *format); |
255 | extern void cgit_print_age(time_t t, time_t max_relative, char *format); | 256 | extern void cgit_print_age(time_t t, time_t max_relative, char *format); |
256 | extern void cgit_print_docstart(char *title, struct cacheitem *item); | 257 | extern void cgit_print_docstart(char *title, struct cacheitem *item); |
257 | extern void cgit_print_docend(); | 258 | extern void cgit_print_docend(); |
258 | extern void cgit_print_pageheader(char *title, int show_search); | 259 | extern void cgit_print_pageheader(char *title, int show_search); |
259 | extern void cgit_print_snapshot_start(const char *mimetype, | 260 | extern void cgit_print_snapshot_start(const char *mimetype, |
260 | const char *filename, | 261 | const char *filename, |
261 | struct cacheitem *item); | 262 | struct cacheitem *item); |
262 | extern void cgit_print_branches(int maxcount); | 263 | extern void cgit_print_branches(int maxcount); |
263 | extern void cgit_print_tags(int maxcount); | 264 | extern void cgit_print_tags(int maxcount); |
264 | 265 | ||
265 | extern void cgit_print_repolist(struct cacheitem *item); | 266 | extern void cgit_print_repolist(struct cacheitem *item); |