Mercurial > audlegacy
annotate src/audacious/playlist_container.h @ 3165:8775dfc57ead trunk
Remove mainwin_set_info_text() craq. Still some work to do.
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Wed, 25 Jul 2007 15:46:00 -0500 |
parents | f1c756f39e6c |
children | 1f7c00c1de22 |
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>. |
3123
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
17 * |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
18 * The Audacious team does not consider modular code linking to |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
19 * Audacious or using our public API to be a derived work. |
2313 | 20 */ |
21 | |
22 #ifndef _PLAYLIST_CONTAINER_H_ | |
23 #define _PLAYLIST_CONTAINER_H_ | |
24 | |
25 G_BEGIN_DECLS | |
26 | |
27 struct _PlaylistContainer { | |
28 char *name; /* human-readable name */ | |
29 char *ext; /* extension */ | |
30 void (*plc_read)(const gchar *filename, gint pos); /* plc_load */ | |
31 void (*plc_write)(const gchar *filename, gint pos); /* plc_write */ | |
32 }; | |
33 | |
34 typedef struct _PlaylistContainer PlaylistContainer; | |
35 | |
36 #define PLAYLIST_CONTAINER(x) ((PlaylistContainer *)(x)) | |
37 | |
38 extern void playlist_container_register(PlaylistContainer *plc); | |
39 extern void playlist_container_unregister(PlaylistContainer *plc); | |
40 extern void playlist_container_read(char *filename, gint pos); | |
41 extern void playlist_container_write(char *filename, gint pos); | |
42 extern PlaylistContainer *playlist_container_find(char *ext); | |
43 | |
44 G_END_DECLS | |
45 | |
46 #endif |