libmpd-playlist.h

Go to the documentation of this file.
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 #ifndef __MPD_LIB_PLAYLIST__
00021 #define __MPD_LIB_PLAYLIST__
00022 
00027 
00028 
00037 long long       mpd_playlist_get_playlist_id            (MpdObj *mi);
00038 
00039 
00047 long long       mpd_playlist_get_old_playlist_id         (MpdObj *mi);
00048 
00049 
00058 mpd_Song *      mpd_playlist_get_song                   (MpdObj *mi, int songid);
00059 
00060 
00070 mpd_Song * mpd_playlist_get_song_from_pos(MpdObj *mi, int songpos);
00071 
00072 
00083 MpdData * mpd_playlist_get_song_from_pos_range(MpdObj *mi, int start, int stop);
00084 
00085 
00094 mpd_Song *      mpd_playlist_get_current_song           (MpdObj *mi);
00095 
00096 
00105 int             mpd_playlist_clear                      (MpdObj *mi);
00106 
00107 
00115 int             mpd_playlist_shuffle                    (MpdObj *mi);
00116 
00117 
00126 int             mpd_playlist_move_pos           (MpdObj *mi, int old_pos, int new_pos);
00127 
00128 
00137 int             mpd_playlist_move_id            (MpdObj *mi, int old_id, int new_id);
00138 
00139 
00148 MpdData *       mpd_playlist_get_changes                (MpdObj *mi,int old_playlist_id);
00149 
00159 MpdData * mpd_playlist_get_changes_posid(MpdObj *mi,int old_playlist_id);
00160 
00161 
00167 int             mpd_playlist_get_playlist_length        (MpdObj *mi);
00168 
00177 int             mpd_playlist_add                        (MpdObj *mi,const char *path);
00178 
00187 int mpd_playlist_delete_id(MpdObj *mi, int songid);
00188 
00197 int mpd_playlist_delete_pos(MpdObj *mi, int songpos);   
00198 
00210 int mpd_playlist_add_get_id(MpdObj *mi,const char *path);
00211 
00224 
00233 int     mpd_playlist_queue_add          (MpdObj *mi,const char *path);
00234 
00235 
00236 
00245 int     mpd_playlist_queue_load         (MpdObj *mi,const char *path);
00246 
00247 
00255 int     mpd_playlist_queue_delete_id    (MpdObj *mi,int id);
00256 
00257 
00266 int     mpd_playlist_queue_delete_pos   (MpdObj *mi,int songpos);
00267 
00268 
00276 int     mpd_playlist_queue_commit               (MpdObj *mi);
00277 
00285 
00294 void mpd_playlist_search_start(MpdObj *mi, int exact);
00295 
00303 MpdData * mpd_playlist_search_commit(MpdObj *mi);
00304 
00312 void mpd_playlist_search_add_constraint(MpdObj *mi, mpd_TagItems field, const char *value);
00313 
00321 
00322 
00331 int mpd_playlist_mpd_queue_add(MpdObj *mi, int songid);
00332 
00333 
00342 int mpd_playlist_mpd_queue_remove(MpdObj *mi, int songpos);
00343 
00346 #endif

Copyright 2006 Qball Cow