author | Lars Hjemli <hjemli@gmail.com> | 2007-05-08 22:48:09 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-08 22:48:09 (UTC) |
commit | ca8eb8fc8f71ee0a40015c323619f776840b6503 (patch) (unidiff) | |
tree | f74a114ba19c215bffe8362bf8e63495155ebef4 /cgit.h | |
parent | 7250a154678477a1e8260efbc9810ec389754ef9 (diff) | |
download | cgit-ca8eb8fc8f71ee0a40015c323619f776840b6503.zip cgit-ca8eb8fc8f71ee0a40015c323619f776840b6503.tar.gz cgit-ca8eb8fc8f71ee0a40015c323619f776840b6503.tar.bz2 |
Add support for downloading single blobs
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -127,40 +127,41 @@ extern void html_link_open(char *url, char *title, char *class); | |||
127 | extern void html_link_close(void); | 127 | extern void html_link_close(void); |
128 | extern void html_filemode(unsigned short mode); | 128 | extern void html_filemode(unsigned short mode); |
129 | 129 | ||
130 | extern int cgit_read_config(const char *filename, configfn fn); | 130 | extern int cgit_read_config(const char *filename, configfn fn); |
131 | extern int cgit_parse_query(char *txt, configfn fn); | 131 | extern int cgit_parse_query(char *txt, configfn fn); |
132 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); | 132 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
133 | extern struct taginfo *cgit_parse_tag(struct tag *tag); | 133 | extern struct taginfo *cgit_parse_tag(struct tag *tag); |
134 | 134 | ||
135 | extern char *cache_safe_filename(const char *unsafe); | 135 | extern char *cache_safe_filename(const char *unsafe); |
136 | extern int cache_lock(struct cacheitem *item); | 136 | extern int cache_lock(struct cacheitem *item); |
137 | extern int cache_unlock(struct cacheitem *item); | 137 | extern int cache_unlock(struct cacheitem *item); |
138 | extern int cache_cancel_lock(struct cacheitem *item); | 138 | extern int cache_cancel_lock(struct cacheitem *item); |
139 | extern int cache_exist(struct cacheitem *item); | 139 | extern int cache_exist(struct cacheitem *item); |
140 | extern int cache_expired(struct cacheitem *item); | 140 | extern int cache_expired(struct cacheitem *item); |
141 | 141 | ||
142 | extern char *cgit_repourl(const char *reponame); | 142 | extern char *cgit_repourl(const char *reponame); |
143 | extern char *cgit_pageurl(const char *reponame, const char *pagename, | 143 | extern char *cgit_pageurl(const char *reponame, const char *pagename, |
144 | const char *query); | 144 | const char *query); |
145 | 145 | ||
146 | extern void cgit_print_error(char *msg); | 146 | extern void cgit_print_error(char *msg); |
147 | extern void cgit_print_date(unsigned long secs); | 147 | extern void cgit_print_date(unsigned long secs); |
148 | extern void cgit_print_docstart(char *title, struct cacheitem *item); | 148 | extern void cgit_print_docstart(char *title, struct cacheitem *item); |
149 | extern void cgit_print_docend(); | 149 | extern void cgit_print_docend(); |
150 | extern void cgit_print_pageheader(char *title, int show_search); | 150 | extern void cgit_print_pageheader(char *title, int show_search); |
151 | extern void cgit_print_snapshot_start(const char *mimetype, | 151 | extern 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 | ||
155 | extern void cgit_print_repolist(struct cacheitem *item); | 155 | extern void cgit_print_repolist(struct cacheitem *item); |
156 | extern void cgit_print_summary(); | 156 | extern void cgit_print_summary(); |
157 | extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep); | 157 | extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep); |
158 | extern void cgit_print_view(const char *hex, char *path); | 158 | extern void cgit_print_view(const char *hex, char *path); |
159 | extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); | ||
159 | extern void cgit_print_tree(const char *hex, char *path); | 160 | extern void cgit_print_tree(const char *hex, char *path); |
160 | extern void cgit_print_commit(const char *hex); | 161 | extern void cgit_print_commit(const char *hex); |
161 | extern void cgit_print_diff(const char *old_hex, const char *new_hex); | 162 | extern void cgit_print_diff(const char *old_hex, const char *new_hex); |
162 | extern void cgit_print_snapshot(struct cacheitem *item, const char *hex, | 163 | extern 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 */ |