1548
|
1 /*
|
|
2 * Audacious: A cross-platform multimedia player
|
|
3 * Copyright (c) 2006 William Pitcock, Tony Vroon, George Averill,
|
|
4 * Giacomo Lozito, Derek Pomery and Yoshiki Yazawa.
|
|
5 *
|
|
6 * This program is free software; you can redistribute it and/or modify
|
|
7 * it under the terms of the GNU General Public License as published by
|
|
8 * the Free Software Foundation; either version 2 of the License, or
|
|
9 * (at your option) any later version.
|
|
10 *
|
|
11 * This program is distributed in the hope that it will be useful,
|
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 * GNU General Public License for more details.
|
|
15 *
|
|
16 * You should have received a copy of the GNU General Public License
|
|
17 * along with this program; if not, write to the Free Software
|
|
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
19 */
|
|
20
|
|
21 #ifndef _PLAYLIST_CONTAINER_H_
|
|
22 #define _PLAYLIST_CONTAINER_H_
|
|
23
|
|
24 struct _PlaylistContainer {
|
|
25 char *name; /* human-readable name */
|
|
26 char *ext; /* extension */
|
1559
|
27 void (*plc_read)(const gchar *filename, gint pos); /* plc_load */
|
|
28 void (*plc_write)(const gchar *filename, gint pos); /* plc_write */
|
1548
|
29 };
|
|
30
|
|
31 typedef struct _PlaylistContainer PlaylistContainer;
|
|
32
|
1549
|
33 #define PLAYLIST_CONTAINER(x) ((PlaylistContainer *)(x))
|
|
34
|
1548
|
35 extern void playlist_container_register(PlaylistContainer *plc);
|
|
36 extern void playlist_container_unregister(PlaylistContainer *plc);
|
1550
|
37 extern void playlist_container_read(char *filename, gint pos);
|
|
38 extern void playlist_container_write(char *filename, gint pos);
|
1553
|
39 extern PlaylistContainer *playlist_container_find(char *ext);
|
1548
|
40
|
|
41 #endif
|