1 /* GST123 - GStreamer based command line media player 2 * Copyright (C) 2006-2010 Stefan Westerfeld 3 * Copyright (C) 2010 أحمد المحمودي (Ahmed El-Mahmoudy) 4 * 5 * Playlist support: PLS playlist parser 6 * Copyright (C) 2010 Siddhesh Poyarekar 7 * 8 * This library is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Lesser General Public 10 * License as published by the Free Software Foundation; either 11 * version 2 of the License, or (at your option) any later version. 12 * 13 * This library is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Lesser General Public License for more details. 17 * 18 * You should have received a copy of the GNU Lesser General 19 * Public License along with this library; if not, write to the 20 * Free Software Foundation, Inc., 59 Temple Place, Suite 330, 21 * Boston, MA 02111-1307, USA. 22 */ 23 24 #ifndef __PLS_PARSER_H__ 25 #define __PLS_PARSER_H__ 26 27 #include "playlist.h" 28 29 namespace Gst123 30 { 31 32 struct PLSParser : PlaylistParser 33 { 34 int parse (std::vector<std::string>& list, IOStream *stream); 35 bool identify (IOStream *stream); 36 std::string str_error (int error); 37 private: 38 static const std::string type; 39 }; 40 41 } 42 43 #endif 44