Mercurial > audlegacy
annotate src/audacious/playlist_container.h @ 3981:ab4962c133c7
Handle native endianness.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Thu, 22 Nov 2007 05:01:37 -0600 |
parents | 1f7c00c1de22 |
children | 2eee464379dc |
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 { | |
3634 | 28 gchar *name; /* human-readable name */ |
29 gchar *ext; /* extension */ | |
2313 | 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); | |
3634 | 40 extern void playlist_container_read(gchar *filename, gint pos); |
41 extern void playlist_container_write(gchar *filename, gint pos); | |
42 extern PlaylistContainer *playlist_container_find(gchar *ext); | |
2313 | 43 |
44 G_END_DECLS | |
45 | |
46 #endif |