author | Lars Hjemli <hjemli@gmail.com> | 2009-08-24 09:02:48 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-08-24 09:02:48 (UTC) |
commit | b47b7bd1d0fb872763214e674b53a562c7513fc0 (patch) (unidiff) | |
tree | 03466abfe90a858ee4f7b09877b095b6a7f50555 /ui-stats.h | |
parent | 5ca8df0a3d75ba1ca5af28872977f7714b66ff37 (diff) | |
download | cgit-b47b7bd1d0fb872763214e674b53a562c7513fc0.zip cgit-b47b7bd1d0fb872763214e674b53a562c7513fc0.tar.gz cgit-b47b7bd1d0fb872763214e674b53a562c7513fc0.tar.bz2 |
Add and use cgit_find_stats_periodname() in print_repo()
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | ui-stats.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -16,12 +16,13 @@ struct cgit_period { | |||
16 | void (*dec)(struct tm *tm); | 16 | void (*dec)(struct tm *tm); |
17 | void (*inc)(struct tm *tm); | 17 | void (*inc)(struct tm *tm); |
18 | 18 | ||
19 | /* Pretty-print a tm value */ | 19 | /* Pretty-print a tm value */ |
20 | char *(*pretty)(struct tm *tm); | 20 | char *(*pretty)(struct tm *tm); |
21 | }; | 21 | }; |
22 | 22 | ||
23 | extern int cgit_find_stats_period(const char *expr, struct cgit_period **period); | 23 | extern int cgit_find_stats_period(const char *expr, struct cgit_period **period); |
24 | extern const char *cgit_find_stats_periodname(int idx); | ||
24 | 25 | ||
25 | extern void cgit_show_stats(struct cgit_context *ctx); | 26 | extern void cgit_show_stats(struct cgit_context *ctx); |
26 | 27 | ||
27 | #endif /* UI_STATS_H */ | 28 | #endif /* UI_STATS_H */ |