summaryrefslogtreecommitdiffabout
path: root/cgit.h
authorLars Hjemli <hjemli@gmail.com>2007-05-08 22:48:09 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-08 22:48:09 (UTC)
commitca8eb8fc8f71ee0a40015c323619f776840b6503 (patch) (unidiff)
treef74a114ba19c215bffe8362bf8e63495155ebef4 /cgit.h
parent7250a154678477a1e8260efbc9810ec389754ef9 (diff)
downloadcgit-ca8eb8fc8f71ee0a40015c323619f776840b6503.zip
cgit-ca8eb8fc8f71ee0a40015c323619f776840b6503.tar.gz
cgit-ca8eb8fc8f71ee0a40015c323619f776840b6503.tar.bz2
Add support for downloading single blobs
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index 2615231..292e488 100644
--- a/cgit.h
+++ b/cgit.h
@@ -127,40 +127,41 @@ extern void html_link_open(char *url, char *title, char *class);
127extern void html_link_close(void); 127extern void html_link_close(void);
128extern void html_filemode(unsigned short mode); 128extern void html_filemode(unsigned short mode);
129 129
130extern int cgit_read_config(const char *filename, configfn fn); 130extern int cgit_read_config(const char *filename, configfn fn);
131extern int cgit_parse_query(char *txt, configfn fn); 131extern int cgit_parse_query(char *txt, configfn fn);
132extern struct commitinfo *cgit_parse_commit(struct commit *commit); 132extern struct commitinfo *cgit_parse_commit(struct commit *commit);
133extern struct taginfo *cgit_parse_tag(struct tag *tag); 133extern struct taginfo *cgit_parse_tag(struct tag *tag);
134 134
135extern char *cache_safe_filename(const char *unsafe); 135extern char *cache_safe_filename(const char *unsafe);
136extern int cache_lock(struct cacheitem *item); 136extern int cache_lock(struct cacheitem *item);
137extern int cache_unlock(struct cacheitem *item); 137extern int cache_unlock(struct cacheitem *item);
138extern int cache_cancel_lock(struct cacheitem *item); 138extern int cache_cancel_lock(struct cacheitem *item);
139extern int cache_exist(struct cacheitem *item); 139extern int cache_exist(struct cacheitem *item);
140extern int cache_expired(struct cacheitem *item); 140extern int cache_expired(struct cacheitem *item);
141 141
142extern char *cgit_repourl(const char *reponame); 142extern char *cgit_repourl(const char *reponame);
143extern char *cgit_pageurl(const char *reponame, const char *pagename, 143extern char *cgit_pageurl(const char *reponame, const char *pagename,
144 const char *query); 144 const char *query);
145 145
146extern void cgit_print_error(char *msg); 146extern void cgit_print_error(char *msg);
147extern void cgit_print_date(unsigned long secs); 147extern void cgit_print_date(unsigned long secs);
148extern void cgit_print_docstart(char *title, struct cacheitem *item); 148extern void cgit_print_docstart(char *title, struct cacheitem *item);
149extern void cgit_print_docend(); 149extern void cgit_print_docend();
150extern void cgit_print_pageheader(char *title, int show_search); 150extern void cgit_print_pageheader(char *title, int show_search);
151extern void cgit_print_snapshot_start(const char *mimetype, 151extern void cgit_print_snapshot_start(const char *mimetype,
152 const char *filename, 152 const char *filename,
153 struct cacheitem *item); 153 struct cacheitem *item);
154 154
155extern void cgit_print_repolist(struct cacheitem *item); 155extern void cgit_print_repolist(struct cacheitem *item);
156extern void cgit_print_summary(); 156extern void cgit_print_summary();
157extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep); 157extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep);
158extern void cgit_print_view(const char *hex, char *path); 158extern void cgit_print_view(const char *hex, char *path);
159extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path);
159extern void cgit_print_tree(const char *hex, char *path); 160extern void cgit_print_tree(const char *hex, char *path);
160extern void cgit_print_commit(const char *hex); 161extern void cgit_print_commit(const char *hex);
161extern void cgit_print_diff(const char *old_hex, const char *new_hex); 162extern void cgit_print_diff(const char *old_hex, const char *new_hex);
162extern void cgit_print_snapshot(struct cacheitem *item, const char *hex, 163extern void cgit_print_snapshot(struct cacheitem *item, const char *hex,
163 const char *format, const char *prefix, 164 const char *format, const char *prefix,
164 const char *filename); 165 const char *filename);
165 166
166#endif /* CGIT_H */ 167#endif /* CGIT_H */