summaryrefslogtreecommitdiffabout
path: root/cgit.h
authorLars Hjemli <hjemli@gmail.com>2007-11-03 09:42:37 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-11-03 09:42:37 (UTC)
commit51140311bb3b0d4d0e859d5045ffe4c74478f5fe (patch) (unidiff)
tree6575f174e32abd5f5d1f481e5f7f5978525ae416 /cgit.h
parentdf203a293e3ac19245f8761cf7c5808f8735f917 (diff)
downloadcgit-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>
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cgit.h b/cgit.h
index 42036c3..163f355 100644
--- a/cgit.h
+++ b/cgit.h
@@ -217,49 +217,50 @@ extern int html_include(const char *filename);
217extern int cgit_read_config(const char *filename, configfn fn); 217extern int cgit_read_config(const char *filename, configfn fn);
218extern int cgit_parse_query(char *txt, configfn fn); 218extern int cgit_parse_query(char *txt, configfn fn);
219extern struct commitinfo *cgit_parse_commit(struct commit *commit); 219extern struct commitinfo *cgit_parse_commit(struct commit *commit);
220extern struct taginfo *cgit_parse_tag(struct tag *tag); 220extern struct taginfo *cgit_parse_tag(struct tag *tag);
221extern void cgit_parse_url(const char *url); 221extern void cgit_parse_url(const char *url);
222 222
223extern char *cache_safe_filename(const char *unsafe); 223extern char *cache_safe_filename(const char *unsafe);
224extern int cache_lock(struct cacheitem *item); 224extern int cache_lock(struct cacheitem *item);
225extern int cache_unlock(struct cacheitem *item); 225extern int cache_unlock(struct cacheitem *item);
226extern int cache_cancel_lock(struct cacheitem *item); 226extern int cache_cancel_lock(struct cacheitem *item);
227extern int cache_exist(struct cacheitem *item); 227extern int cache_exist(struct cacheitem *item);
228extern int cache_expired(struct cacheitem *item); 228extern int cache_expired(struct cacheitem *item);
229 229
230extern char *cgit_repourl(const char *reponame); 230extern char *cgit_repourl(const char *reponame);
231extern char *cgit_fileurl(const char *reponame, const char *pagename, 231extern char *cgit_fileurl(const char *reponame, const char *pagename,
232 const char *filename, const char *query); 232 const char *filename, const char *query);
233extern char *cgit_pageurl(const char *reponame, const char *pagename, 233extern char *cgit_pageurl(const char *reponame, const char *pagename,
234 const char *query); 234 const char *query);
235 235
236extern const char *cgit_repobasename(const char *reponame); 236extern const char *cgit_repobasename(const char *reponame);
237 237
238extern void cgit_tree_link(char *name, char *title, char *class, char *head, 238extern void cgit_tree_link(char *name, char *title, char *class, char *head,
239 char *rev, char *path); 239 char *rev, char *path);
240extern void cgit_log_link(char *name, char *title, char *class, char *head, 240extern 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);
242extern void cgit_commit_link(char *name, char *title, char *class, char *head, 243extern void cgit_commit_link(char *name, char *title, char *class, char *head,
243 char *rev); 244 char *rev);
244extern void cgit_refs_link(char *name, char *title, char *class, char *head, 245extern void cgit_refs_link(char *name, char *title, char *class, char *head,
245 char *rev, char *path); 246 char *rev, char *path);
246extern void cgit_snapshot_link(char *name, char *title, char *class, 247extern void cgit_snapshot_link(char *name, char *title, char *class,
247 char *head, char *rev, char *archivename); 248 char *head, char *rev, char *archivename);
248extern void cgit_diff_link(char *name, char *title, char *class, char *head, 249extern 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
251extern void cgit_object_link(struct object *obj); 252extern void cgit_object_link(struct object *obj);
252 253
253extern void cgit_print_error(char *msg); 254extern void cgit_print_error(char *msg);
254extern void cgit_print_date(time_t secs, char *format); 255extern void cgit_print_date(time_t secs, char *format);
255extern void cgit_print_age(time_t t, time_t max_relative, char *format); 256extern void cgit_print_age(time_t t, time_t max_relative, char *format);
256extern void cgit_print_docstart(char *title, struct cacheitem *item); 257extern void cgit_print_docstart(char *title, struct cacheitem *item);
257extern void cgit_print_docend(); 258extern void cgit_print_docend();
258extern void cgit_print_pageheader(char *title, int show_search); 259extern void cgit_print_pageheader(char *title, int show_search);
259extern void cgit_print_snapshot_start(const char *mimetype, 260extern void cgit_print_snapshot_start(const char *mimetype,
260 const char *filename, 261 const char *filename,
261 struct cacheitem *item); 262 struct cacheitem *item);
262extern void cgit_print_branches(int maxcount); 263extern void cgit_print_branches(int maxcount);
263extern void cgit_print_tags(int maxcount); 264extern void cgit_print_tags(int maxcount);
264 265
265extern void cgit_print_repolist(struct cacheitem *item); 266extern void cgit_print_repolist(struct cacheitem *item);