Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Print each person through one helper
The log, refs and tag pages no longer open a filter of their own, so they stop including filter.h.
Diffstat (limited to '')
-rw-r--r--source/ui-shared.h7
1 file changed, 7 insertions, 0 deletions
diff --git a/source/ui-shared.h b/source/ui-shared.h
index 87f9c60..6b58ab3 100644
--- a/source/ui-shared.h
+++ b/source/ui-shared.h
@@ -107,6 +107,13 @@ extern struct date_mode cgit_date_mode(enum date_mode_type type);
* relative dates off gets the date either way.
*/
extern void cgit_print_age(time_t t, int tz, time_t max_relative);
+
+/*
+ * Print name through the email filter, followed by the address when
+ * show_email is set and enable-plain-email is on. A missing address reaches
+ * the filter as an empty string, since a filter must not be handed NULL.
+ */
+extern void cgit_print_person(const char *name, const char *email, const char *origin, int show_email);
extern void cgit_print_http_headers(void);
/*
* Answer with a redirect to url, followed by query when one is given. Both