/*
* The blob page, which reads a blob out of the object database and writes it
* to the client. A caller either hands the whole response over to the blob's
* own bytes and headers, or drops a file's contents into a page cgit is already
* building, as the summary page does for a readme.
*/#ifndef CGIT_UI_BLOB_H
#define CGIT_UI_BLOB_H
externintcgit_ref_path_exists(constchar *path, constchar *ref, int file_only);
/*
* Write the file at path in head, escaped when html_escape is set. The return
* is 0 once it is written, -2 when it is past max-blob-size, and -1 when it
* cannot be found or read.
*/externintcgit_print_file(char *path, constchar *head, int file_only, int html_escape);
externvoidcgit_print_blob(constchar *hex, char *path, constchar *head, int file_only);
#endif// CGIT_UI_BLOB_H