musicus mpd client 0.1d
|
00001 00007 /********************************************************************** 00008 * Copyright 2006 - 2008 by Simon Gerber <simugerber@student.ethz.ch> 00009 * 00010 * This file is part of Musicus. 00011 * Musicus is free software: you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation, either version 3 of the License, or 00014 * (at your option) any later version. 00015 * 00016 * Musicus is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with Musicus. If not, see <http://www.gnu.org/licenses/>. 00023 **********************************************************************/ 00024 00025 #ifndef __PLAYLIST_H 00026 #define __PLAYLIST_H 00027 00032 00033 #include "definitions.h" 00034 00038 typedef struct _MpdPlContainer { 00040 mpd_Song **list; 00042 int length; 00044 int current; 00045 } MpdPlContainer; 00046 00052 mpd_Song **allocate_pl_mem(int pl_length); 00057 MpdPlContainer *mpd_pl_container_new(); 00063 MpdPlContainer *mpd_pl_container_new_alloc(int list_length); 00068 void mpd_pl_container_free(MpdPlContainer *plc); 00069 00070 MpdPlContainer *mpd_get_pl(); 00078 00079 #endif 00080 00081 00082 /* vim:sts=4:shiftwidth=4 00083 */