From 0d449d8df745c5c527f637f42e33156b92ac174d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 18 Jan 2009 15:22:26 +0100 Subject: stats: no CamelCase Renamed functions and types. --- src/stats.h | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'src/stats.h') diff --git a/src/stats.h b/src/stats.h index 399d6c68d..143ee0045 100644 --- a/src/stats.h +++ b/src/stats.h @@ -21,20 +21,23 @@ struct client; -typedef struct _Stats { - unsigned long daemonStart; - int numberOfSongs; - unsigned long dbPlayTime; - /*unsigned long playTime; - unsigned long songsPlayed; */ -} Stats; +struct stats { + unsigned long start_time; -extern Stats stats; + /** number of song files in the music directory */ + unsigned song_count; -void initStats(void); + /** sum of all song durations in the music directory (in + seconds) */ + unsigned long song_duration; +}; + +extern struct stats stats; + +void stats_global_init(void); void stats_update(void); -int printStats(struct client *client); +int stats_print(struct client *client); #endif -- cgit v1.2.3