libmpd 0.19.0
|
00001 /* libmpd (high level libmpdclient library) 00002 * Copyright (C) 2004-2009 Qball Cow <qball@sarine.nl> 00003 * Project homepage: http://gmpcwiki.sarine.nl/ 00004 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 00015 * You should have received a copy of the GNU General Public License along 00016 * with this program; if not, write to the Free Software Foundation, Inc., 00017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 */ 00019 00020 00021 #ifndef __MPD_LIB_STATUS__ 00022 #define __MPD_LIB_STATUS__ 00023 00027 00036 int mpd_status_check (MpdObj *mi); 00037 00038 00039 00047 int mpd_status_queue_update (MpdObj *mi); 00048 00049 00050 00059 int mpd_status_update (MpdObj *mi); 00060 00061 00062 00070 float mpd_status_set_volume_as_float (MpdObj *mi, float fvol); 00071 00072 00081 int mpd_status_set_volume (MpdObj *mi,int volume); 00082 00083 00084 00092 int mpd_status_get_volume (MpdObj *mi); 00093 00094 00095 00103 int mpd_status_get_bitrate (MpdObj *mi); 00104 00105 00106 00114 unsigned int mpd_status_get_samplerate (MpdObj *mi); 00115 00116 00117 00125 int mpd_status_get_channels (MpdObj *mi); 00126 00127 00128 00136 int mpd_status_get_bits (MpdObj *mi); 00137 00138 00139 00147 int mpd_status_get_total_song_time (MpdObj *mi); 00148 00149 00157 int mpd_status_get_elapsed_song_time (MpdObj *mi); 00158 00159 00167 int mpd_status_get_crossfade (MpdObj *mi); 00168 00169 00170 00179 int mpd_status_set_crossfade (MpdObj *mi, int crossfade_time); 00180 00181 00182 00190 int mpd_status_db_is_updating (MpdObj *mi); 00191 00198 char * mpd_status_get_mpd_error(MpdObj *mi); 00199 00206 00207 00208 00209 00215 int mpd_stats_update (MpdObj *mi); 00216 00217 00225 int mpd_stats_get_total_songs (MpdObj *mi); 00226 00227 00235 int mpd_stats_get_total_artists (MpdObj *mi); 00236 00237 00238 00246 int mpd_stats_get_total_albums (MpdObj *mi); 00247 00248 00249 00257 int mpd_stats_get_uptime (MpdObj *mi); 00265 int mpd_stats_get_db_playtime (MpdObj *mi); 00266 00267 00268 00276 int mpd_stats_get_playtime (MpdObj *mi); 00277 00278 00279 00280 00282 #endif