Mercurial > audlegacy
annotate src/audacious/playlist_container.h @ 3121:3b6d316f8b09 trunk
GPL3 relicensing.
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Fri, 20 Jul 2007 08:59:47 -0500 |
parents | 3149d4b1a9a9 |
children | f1c756f39e6c |
rev | line source |
---|---|
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 | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2313
diff
changeset
|
8 * the Free Software Foundation; under version 3 of the License. |
2313 | 9 * |
10 * This program is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 * GNU General Public License for more details. | |
14 * | |
15 * You should have received a copy of the GNU General Public License | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
2313
diff
changeset
|
16 * along with this program. If not, see <http://www.gnu.org/licenses>. |
2313 | 17 */ |
18 | |
19 #ifndef _PLAYLIST_CONTAINER_H_ | |
20 #define _PLAYLIST_CONTAINER_H_ | |
21 | |
22 G_BEGIN_DECLS | |
23 | |
24 struct _PlaylistContainer { | |
25 char *name; /* human-readable name */ | |
26 char *ext; /* extension */ | |
27 void (*plc_read)(const gchar *filename, gint pos); /* plc_load */ | |
28 void (*plc_write)(const gchar *filename, gint pos); /* plc_write */ | |
29 }; | |
30 | |
31 typedef struct _PlaylistContainer PlaylistContainer; | |
32 | |
33 #define PLAYLIST_CONTAINER(x) ((PlaylistContainer *)(x)) | |
34 | |
35 extern void playlist_container_register(PlaylistContainer *plc); | |
36 extern void playlist_container_unregister(PlaylistContainer *plc); | |
37 extern void playlist_container_read(char *filename, gint pos); | |
38 extern void playlist_container_write(char *filename, gint pos); | |
39 extern PlaylistContainer *playlist_container_find(char *ext); | |
40 | |
41 G_END_DECLS | |
42 | |
43 #endif |