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:
mi a MpdObj
Gets the total time of the database

Returns:
the total time of the database

int mpd_stats_get_playtime ( MpdObj mi  ) 

Parameters:
mi a MpdObj
Gets the time mpd is playing

Returns:
time that mpd is playing in seconds

int mpd_stats_get_total_albums ( MpdObj mi  ) 

Parameters:
mi a 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:
mi a 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:
mi a MpdObj
Gets the total number of songs in the database

Returns:
The total number of songs

int mpd_stats_get_uptime ( MpdObj mi  ) 

Parameters:
mi a 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:
mi a MpdObj
Shouldn't be used from the program.


Copyright 2006 Qball Cow