aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.h
diff options
context:
space:
mode:
authorJohn Keeping2016-01-19 19:33:03 +0000
committerJason A. Donenfeld2016-02-08 14:21:34 +0100
commit360af46fac6fe79ec1868141a6c34b4c6b732ba0 (patch)
treed0fad8a5d40e6d1ab371d14ad0695838e936fcea /ui-shared.h
parent45c87ca1c32dcd5ffd4a681fadf05627d9ce7770 (diff)
downloadcgit-360af46fac6fe79ec1868141a6c34b4c6b732ba0.tar.gz
cgit-360af46fac6fe79ec1868141a6c34b4c6b732ba0.tar.bz2
cgit-360af46fac6fe79ec1868141a6c34b4c6b732ba0.zip
ui-shared: add cgit_date_mode()
This returns the correct mode value for use with Git's show_date() based on the current CGit configuration and will be used in the following patches. Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'ui-shared.h')
-rw-r--r--ui-shared.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-shared.h b/ui-shared.h
index c9413ed..707cec9 100644
--- a/ui-shared.h
+++ b/ui-shared.h
@@ -61,6 +61,7 @@ __attribute__((format (printf,1,2)))
61extern void cgit_print_error(const char *fmt, ...); 61extern void cgit_print_error(const char *fmt, ...);
62__attribute__((format (printf,1,0))) 62__attribute__((format (printf,1,0)))
63extern void cgit_vprint_error(const char *fmt, va_list ap); 63extern void cgit_vprint_error(const char *fmt, va_list ap);
64extern const struct date_mode *cgit_date_mode(const char *format);
64extern void cgit_print_date(time_t secs, const char *format, int local_time); 65extern void cgit_print_date(time_t secs, const char *format, int local_time);
65extern void cgit_print_age(time_t t, time_t max_relative); 66extern void cgit_print_age(time_t t, time_t max_relative);
66extern void cgit_print_http_headers(void); 67extern void cgit_print_http_headers(void);