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/config.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 source/config.h (limited to 'source/config.h') diff --git a/source/config.h b/source/config.h new file mode 100644 index 0000000..ab42e2f --- /dev/null +++ b/source/config.h @@ -0,0 +1,16 @@ +/* + * The interface to cgit's config file reader. A caller names a file and passes + * a callback that receives every name and value in it, in the order they + * appear. + */ + +#ifndef CGIT_CONFIG_H +#define CGIT_CONFIG_H + +#include "cgit.h" + +typedef void (*config_file_value_fn)(const char *name, const char *value); + +extern int config_file_parse(const char *filename, config_file_value_fn fn); + +#endif // CGIT_CONFIG_H -- cgit v2.8.0