2313
|
1 /*
|
|
2 * Audacious: A cross-platform multimedia player
|
|
3 * Copyright (c) 2006-2007 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 G_BEGIN_DECLS
|
|
25
|
|
26 struct _PlaylistContainer {
|
|
27 char *name; /* human-readable name */
|
|
28 char *ext; /* extension */
|
|
29 void (*plc_read)(const gchar *filename, gint pos); /* plc_load */
|
|
30 void (*plc_write)(const gchar *filename, gint pos); /* plc_write */
|
|
31 };
|
|
32
|
|
33 typedef struct _PlaylistContainer PlaylistContainer;
|
|
34
|
|
35 #define PLAYLIST_CONTAINER(x) ((PlaylistContainer *)(x))
|
|
36
|
|
37 extern void playlist_container_register(PlaylistContainer *plc);
|
|
38 extern void playlist_container_unregister(PlaylistContainer *plc);
|
|
39 extern void playlist_container_read(char *filename, gint pos);
|
|
40 extern void playlist_container_write(char *filename, gint pos);
|
|
41 extern PlaylistContainer *playlist_container_find(char *ext);
|
|
42
|
|
43 G_END_DECLS
|
|
44
|
|
45 #endif
|