#ifndef UI_STATS_H#define UI_STATS_H#include"cgit.h"structcgit_period{constcharcode;constchar*name;intmax_periods;intcount;/* Convert a tm value to the first day in the period */void(*trunc)(structtm*tm);/* Update tm value to start of next/previous period */void(*dec)(structtm*tm);void(*inc)(structtm*tm);/* Pretty-print a tm value */char*(*pretty)(structtm*tm);};externintcgit_find_stats_period(constchar*expr,conststructcgit_period**period);externconstchar*cgit_find_stats_periodname(intidx);externvoidcgit_show_stats(void);#endif /* UI_STATS_H */