aboutsummaryrefslogtreecommitdiffstats
path: root/src/stats.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-18 15:22:26 +0100
committerMax Kellermann <max@duempel.org>2009-01-18 15:22:26 +0100
commit0d449d8df745c5c527f637f42e33156b92ac174d (patch)
tree9babb10fb34383f225acdf882898ac7d76b1a51a /src/stats.h
parente8c148ab02f4dc9c0531ec97acdc3bda804313cc (diff)
downloadmpd-0d449d8df745c5c527f637f42e33156b92ac174d.tar.gz
mpd-0d449d8df745c5c527f637f42e33156b92ac174d.tar.xz
mpd-0d449d8df745c5c527f637f42e33156b92ac174d.zip
stats: no CamelCase
Renamed functions and types.
Diffstat (limited to 'src/stats.h')
-rw-r--r--src/stats.h23
1 files changed, 13 insertions, 10 deletions
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