libmpd  0.19.0
Stats

Functions

int mpd_stats_update (MpdObj *mi)
int mpd_stats_get_total_songs (MpdObj *mi)
int mpd_stats_get_total_artists (MpdObj *mi)
int mpd_stats_get_total_albums (MpdObj *mi)
int mpd_stats_get_uptime (MpdObj *mi)
int mpd_stats_get_db_playtime (MpdObj *mi)
int mpd_stats_get_playtime (MpdObj *mi)

Detailed Description

Functions to get mpd statistics


Function Documentation

int mpd_stats_get_db_playtime ( MpdObj *  mi)
Parameters:
mia #MpdObj

Gets the total time of the database

Returns:
the total time of the database
int mpd_stats_get_playtime ( MpdObj *  mi)
Parameters:
mia #MpdObj

Gets the time mpd is playing

Returns:
time that mpd is playing in seconds
int mpd_stats_get_total_albums ( MpdObj *  mi)
Parameters:
mia #MpdObj

Gets the total number of albums in the database

Returns:
The number of albums in the database
int mpd_stats_get_total_artists ( MpdObj *  mi)
Parameters:
mia #MpdObj

Gets the total number of artists in the database.

Returns:
The number of artists in the database
int mpd_stats_get_total_songs ( MpdObj *  mi)
Parameters:
mia #MpdObj

Gets the total number of songs in the database

Returns:
The total number of songs
int mpd_stats_get_uptime ( MpdObj *  mi)
Parameters:
mia #MpdObj

Gets the time since mpd has been running

Returns:
time since mpd has been running in seconds
int mpd_stats_update ( MpdObj *  mi)
Parameters:
mia #MpdObj

Shouldn't be used from the program.