libmpdclient
2.10
|
MPD client library. More...
Go to the source code of this file.
Functions | |
bool | mpd_send_stats (struct mpd_connection *connection) |
mpd_malloc struct mpd_stats * | mpd_stats_begin (void) |
void | mpd_stats_feed (struct mpd_stats *status, const struct mpd_pair *pair) |
mpd_malloc struct mpd_stats * | mpd_recv_stats (struct mpd_connection *connection) |
mpd_malloc struct mpd_stats * | mpd_run_stats (struct mpd_connection *connection) |
void | mpd_stats_free (struct mpd_stats *stats) |
mpd_pure unsigned | mpd_stats_get_number_of_artists (const struct mpd_stats *stats) |
mpd_pure unsigned | mpd_stats_get_number_of_albums (const struct mpd_stats *stats) |
mpd_pure unsigned | mpd_stats_get_number_of_songs (const struct mpd_stats *stats) |
mpd_pure unsigned long | mpd_stats_get_uptime (const struct mpd_stats *stats) |
mpd_pure unsigned long | mpd_stats_get_db_update_time (const struct mpd_stats *stats) |
mpd_pure unsigned long | mpd_stats_get_play_time (const struct mpd_stats *stats) |
mpd_pure unsigned long | mpd_stats_get_db_play_time (const struct mpd_stats *stats) |
MPD client library.
Do not include this header directly. Use mpd/client.h instead.
Definition in file stats.h.
bool mpd_send_stats | ( | struct mpd_connection * | connection | ) |
Send the "stats" command to MPD.
mpd_malloc struct mpd_stats* mpd_stats_begin | ( | void | ) |
Begins parsing server stats: creates a new empty mpd_stats object. Free it with mpd_stats_free().
Parses the pair, adding its information to the specified mpd_stats object.
mpd_malloc struct mpd_stats* mpd_recv_stats | ( | struct mpd_connection * | connection | ) |
Reads the "stats" response from MPD.
mpd_malloc struct mpd_stats* mpd_run_stats | ( | struct mpd_connection * | connection | ) |
Shortcut for mpd_send_stats() and mpd_recv_stats().
mpd_pure unsigned mpd_stats_get_number_of_artists | ( | const struct mpd_stats * | stats | ) |
mpd_pure unsigned mpd_stats_get_number_of_albums | ( | const struct mpd_stats * | stats | ) |
mpd_pure unsigned mpd_stats_get_number_of_songs | ( | const struct mpd_stats * | stats | ) |
mpd_pure unsigned long mpd_stats_get_uptime | ( | const struct mpd_stats * | stats | ) |
mpd_pure unsigned long mpd_stats_get_db_update_time | ( | const struct mpd_stats * | stats | ) |
mpd_pure unsigned long mpd_stats_get_play_time | ( | const struct mpd_stats * | stats | ) |
mpd_pure unsigned long mpd_stats_get_db_play_time | ( | const struct mpd_stats * | stats | ) |