1 /*
2     Glurp - A GTK+ client for Music Player Daemon
3     Copyright (C) 2004, 2005 Andrej Kacian
4 
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9 
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14 
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 
19     http://musicpd.org/glurp.shtml
20 
21 */
22 
23 #ifndef __PLAYER_H
24 #define __PLAYER_H
25 
26 void player_play_song(gint id);
27 void player_pause();
28 void player_stop();
29 void player_prev();
30 void player_next();
31 
32 #define STOPPED    (mpd_player_get_state(glurp->mpd) == MPD_PLAYER_STOP)
33 #define PLAYING    (mpd_player_get_state(glurp->mpd) == MPD_PLAYER_PLAY)
34 #define PAUSED     (mpd_player_get_state(glurp->mpd) == MPD_PLAYER_PAUSE)
35 
36 #endif /* __PLAYER_H */
37 // vim: et sw=2 smarttab
38