aboutsummaryrefslogtreecommitdiffstats
path: root/src/Stats.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-10 23:40:05 +0100
committerMax Kellermann <max@duempel.org>2014-01-10 23:42:46 +0100
commit348d0c944e92e8dfb361190b97a168f27a7333b8 (patch)
treeb0b807712792435f02bf752e2e34e7d15184fb14 /src/Stats.hxx
parente9ba5fcaf319654ce685cd329414fcf2591c9c95 (diff)
downloadmpd-348d0c944e92e8dfb361190b97a168f27a7333b8.tar.gz
mpd-348d0c944e92e8dfb361190b97a168f27a7333b8.tar.xz
mpd-348d0c944e92e8dfb361190b97a168f27a7333b8.zip
Stats: lazy initialization
Ask the DatabasePlugin for stats when the first client requests them, not at startup.
Diffstat (limited to 'src/Stats.hxx')
-rw-r--r--src/Stats.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Stats.hxx b/src/Stats.hxx
index 63b96c4d6..e11be0d68 100644
--- a/src/Stats.hxx
+++ b/src/Stats.hxx
@@ -24,7 +24,8 @@ class Client;
void stats_global_init(void);
-void stats_update(void);
+void
+stats_invalidate();
void
stats_print(Client &client);