musicus mpd client 0.1d
mpd.h
Go to the documentation of this file.
00001 
00008 /**********************************************************************
00009  * Copyright 2006 - 2008 by Simon Gerber <simugerber@student.ethz.ch>
00010  *
00011  * This file is part of Musicus.
00012  * Musicus is free software: you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation, either version 3 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * Musicus is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with Musicus.  If not, see <http://www.gnu.org/licenses/>.
00024  **********************************************************************/
00025 
00026 #ifndef __MPD_H
00027 #define __MPD_H
00028 
00033 
00034 #include "definitions.h"
00035 
00041 gboolean mpd_is_connected(MpdObj *obj);
00042 
00048 MpdData *mpd_data_get_next_keep(MpdData *data);
00049 
00056 mpd_Song *mpd_get_current_song(MpdObj *obj);
00057 
00063 mpd_Connection *mpd_object_get_connection(MpdObj *obj);
00064 
00073 void mpd_status_changed_cb(MpdObj *obj, ChangedStatusType what, gpointer data);
00074 
00081 void mpd_play_state_update(MpdObj *obj);
00082 
00083 /* state and song info */
00088 int mpd_get_db_length();
00093 int mpd_get_pl_length();
00100 int mpd_get_current_song_pos();
00105 int mpd_get_current_play_time();
00110 int mpd_get_current_song_time();
00123 int mpd_get_current_song_string(char *song, int strlen);
00130 int mpd_get_current_title_string(char *title, int strlen);
00138 int mpd_get_current_album_string(char *album, int strlen);
00146 int mpd_get_current_artist_string(char *artist, int strlen);
00153 int mpd_get_current_track_string(char *track, int strlen);
00158 gboolean mpd_has_current_song_changed();
00163 gboolean mpd_has_playlist_changed();
00168 gboolean mpd_has_play_state_changed();
00178 int mpd_play_state();
00179 
00180 /* mpd state info manipulation */
00186 void msi_fill(MpdInfo *mi);
00187 
00192 void msi_clear(MpdInfo *mi);
00193 
00196 #endif
00197 
00198 /* vim:sts=4:shiftwidth=4
00199  */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines