From 80767bc9732bf6716697198e53ff2cb8d4ae96be Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Wed, 12 Aug 2026 18:23:17 -1000 Subject: Restyle the sources and fix the audit's findings --- source/ui-blob.h | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'source/ui-blob.h') diff --git a/source/ui-blob.h b/source/ui-blob.h index efbc94e..eb3dbd1 100644 --- a/source/ui-blob.h +++ b/source/ui-blob.h @@ -1,8 +1,18 @@ -#ifndef UI_BLOB_H -#define UI_BLOB_H +/* + * Declarations for reading a blob out of the object database and writing 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. + */ -extern int cgit_ref_path_exists(const char *path, const char *ref, int file_only); -extern int cgit_print_file(char *path, const char *head, int file_only, int html_escape); -extern void cgit_print_blob(const char *hex, char *path, const char *head, int file_only); +#ifndef CGIT_UI_BLOB_H +#define CGIT_UI_BLOB_H -#endif /* UI_BLOB_H */ +extern int cgit_ref_path_exists(const char *path, const char *ref, + int file_only); +extern int cgit_print_file(char *path, const char *head, int file_only, + int html_escape); +extern void cgit_print_blob(const char *hex, char *path, const char *head, + int file_only); + +#endif // CGIT_UI_BLOB_H -- cgit v2.8.0