1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
/*
* M3U/M3U8/PLS playlist routine.
*
* Copyright (c) 2005 Nyaochi
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA, or visit
* http://www.gnu.org/copyleft/gpl.html .
*
*/
/* $Id: playlist.h,v 1.4 2006/01/23 01:56:00 nyaochi Exp $ */
#ifndef __PLAYLIST_H__
#define __PLAYLIST_H__
#ifdef __cplusplus
extern "C" {
#endif/*__cplusplus*/
struct tag_playlist_entry {
ucs2_char_t filename[MAX_PATH];
int order;
};
typedef struct tag_playlist_entry playlist_entry_t;
struct tag_playlist {
int num_entries;
playlist_entry_t* entries;
};
typedef struct tag_playlist playlist_t;
void playlist_init(playlist_t* pl);
void playlist_finish(playlist_t *pl);
int playlist_m3u_read(playlist_t* pl, const ucs2_char_t *filename);
int playlist_m3u8_read(playlist_t* pl, const ucs2_char_t *filename);
int playlist_pls_read(playlist_t* pl, const ucs2_char_t *filename);
int playlist_plp_write(playlist_t* pl, const ucs2_char_t *filename);
void playlist_shuffle(playlist_t* pl);
int playlist_add(playlist_t* pl, const ucs2_char_t* filename);
#ifdef __cplusplus
}
#endif/*__cplusplus*/
#endif/*__PLAYLIST_H__*/
|