libmpdclient 2.22
stats.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2// Copyright The Music Player Daemon Project
3
10#ifndef MPD_STATS_H
11#define MPD_STATS_H
12
13#include "compiler.h"
14
15#include <stdbool.h>
16
17struct mpd_connection;
18struct mpd_pair;
19
26struct mpd_stats;
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
37bool
38mpd_send_stats(struct mpd_connection *connection);
39
47mpd_malloc
48struct mpd_stats *
50
55void
56mpd_stats_feed(struct mpd_stats *stats, const struct mpd_pair *pair);
57
63mpd_malloc
64struct mpd_stats *
65mpd_recv_stats(struct mpd_connection *connection);
66
70mpd_malloc
71struct mpd_stats *
72mpd_run_stats(struct mpd_connection *connection);
73
77void mpd_stats_free(struct mpd_stats *stats);
78
83mpd_pure
84unsigned
86
91mpd_pure
92unsigned
94
99mpd_pure
100unsigned
102
106mpd_pure
107unsigned long mpd_stats_get_uptime(const struct mpd_stats *stats);
108
113mpd_pure
114unsigned long mpd_stats_get_db_update_time(const struct mpd_stats *stats);
115
120mpd_pure
121unsigned long mpd_stats_get_play_time(const struct mpd_stats *stats);
122
127mpd_pure
128unsigned long mpd_stats_get_db_play_time(const struct mpd_stats *stats);
129
130#ifdef __cplusplus
131}
132#endif
133
134#endif
unsigned mpd_stats_get_number_of_artists(const struct mpd_stats *stats)
struct mpd_stats * mpd_stats_begin(void)
unsigned long mpd_stats_get_db_play_time(const struct mpd_stats *stats)
unsigned long mpd_stats_get_uptime(const struct mpd_stats *stats)
unsigned long mpd_stats_get_play_time(const struct mpd_stats *stats)
unsigned long mpd_stats_get_db_update_time(const struct mpd_stats *stats)
void mpd_stats_feed(struct mpd_stats *stats, const struct mpd_pair *pair)
struct mpd_stats * mpd_recv_stats(struct mpd_connection *connection)
bool mpd_send_stats(struct mpd_connection *connection)
struct mpd_stats * mpd_run_stats(struct mpd_connection *connection)
void mpd_stats_free(struct mpd_stats *stats)
unsigned mpd_stats_get_number_of_songs(const struct mpd_stats *stats)
unsigned mpd_stats_get_number_of_albums(const struct mpd_stats *stats)