libmpd  11.8.17
libmpd-playlist.h
Go to the documentation of this file.
1 /* libmpd (high level libmpdclient library)
2  * Copyright (C) 2004-2009 Qball Cow <qball@sarine.nl>
3  * Project homepage: http://gmpcwiki.sarine.nl/
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 along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 
20 #ifndef __MPD_LIB_PLAYLIST__
21 #define __MPD_LIB_PLAYLIST__
22 
27 
28 
37 long long mpd_playlist_get_playlist_id (MpdObj *mi);
38 
39 
48 
49 
58 mpd_Song * mpd_playlist_get_song (MpdObj *mi, int songid);
59 
60 
71 
72 
83 MpdData * mpd_playlist_get_song_from_pos_range(MpdObj *mi, int start, int stop);
84 
85 
95 
96 
105 int mpd_playlist_clear (MpdObj *mi);
106 
107 
115 int mpd_playlist_shuffle (MpdObj *mi);
116 
117 
126 int mpd_playlist_move_pos (MpdObj *mi, int old_pos, int new_pos);
127 
128 
137 int mpd_playlist_move_id (MpdObj *mi, int old_id, int new_id);
138 
139 
148 MpdData * mpd_playlist_get_changes (MpdObj *mi,int old_playlist_id);
149 
159 MpdData * mpd_playlist_get_changes_posid(MpdObj *mi,int old_playlist_id);
160 
161 
168 
177 int mpd_playlist_add (MpdObj *mi,const char *path);
178 
187 int mpd_playlist_delete_id(MpdObj *mi, int songid);
188 
197 int mpd_playlist_delete_pos(MpdObj *mi, int songpos);
198 
210 int mpd_playlist_add_get_id(MpdObj *mi,const char *path);
211 
224 
233 int mpd_playlist_queue_add (MpdObj *mi,const char *path);
234 
235 
236 
245 int mpd_playlist_queue_load (MpdObj *mi,const char *path);
246 
247 
255 int mpd_playlist_queue_delete_id (MpdObj *mi,int id);
256 
257 
266 int mpd_playlist_queue_delete_pos (MpdObj *mi,int songpos);
267 
268 
277 
285 
294 void mpd_playlist_search_start(MpdObj *mi, int exact);
295 
304 
312 void mpd_playlist_search_add_constraint(MpdObj *mi, mpd_TagItems field, const char *value);
313 
321 
322 
331 int mpd_playlist_mpd_queue_add(MpdObj *mi, int songid);
332 
333 
342 int mpd_playlist_mpd_queue_remove(MpdObj *mi, int songpos);
343 
352 int mpd_playlist_load (MpdObj *mi,const char *path);
355 #endif
int mpd_playlist_delete_pos(MpdObj *mi, int songpos)
void mpd_playlist_search_add_constraint(MpdObj *mi, mpd_TagItems field, const char *value)
int mpd_playlist_load(MpdObj *mi, const char *path)
MpdData * mpd_playlist_get_changes_posid(MpdObj *mi, int old_playlist_id)
mpd_Song * mpd_playlist_get_song_from_pos(MpdObj *mi, int songpos)
long long mpd_playlist_get_old_playlist_id(MpdObj *mi)
MpdData * mpd_playlist_get_changes(MpdObj *mi, int old_playlist_id)
struct _MpdObj MpdObj
Definition: libmpd.h:100
mpd_TagItems
Definition: libmpdclient.h:78
int mpd_playlist_queue_commit(MpdObj *mi)
int mpd_playlist_queue_load(MpdObj *mi, const char *path)
int mpd_playlist_move_pos(MpdObj *mi, int old_pos, int new_pos)
int mpd_playlist_delete_id(MpdObj *mi, int songid)
int mpd_playlist_queue_delete_id(MpdObj *mi, int id)
long long mpd_playlist_get_playlist_id(MpdObj *mi)
int mpd_playlist_clear(MpdObj *mi)
void mpd_playlist_search_start(MpdObj *mi, int exact)
int mpd_playlist_get_playlist_length(MpdObj *mi)
mpd_Song * mpd_playlist_get_current_song(MpdObj *mi)
int mpd_playlist_mpd_queue_add(MpdObj *mi, int songid)
MpdData * mpd_playlist_search_commit(MpdObj *mi)
int mpd_playlist_move_id(MpdObj *mi, int old_id, int new_id)
MpdData * mpd_playlist_get_song_from_pos_range(MpdObj *mi, int start, int stop)
int mpd_playlist_mpd_queue_remove(MpdObj *mi, int songpos)
int mpd_playlist_shuffle(MpdObj *mi)
int mpd_playlist_add(MpdObj *mi, const char *path)
int mpd_playlist_add_get_id(MpdObj *mi, const char *path)
int mpd_playlist_queue_delete_pos(MpdObj *mi, int songpos)
int mpd_playlist_queue_add(MpdObj *mi, const char *path)
mpd_Song * mpd_playlist_get_song(MpdObj *mi, int songid)

Copyright 2006 Qball Cow