annotate audacious/playlist_container.h @ 1622:55011fbbd8cb trunk

[svn] - detect what $(SHARED_SUFFIX) should be. - detect if we are using Apple-GCC.
author nenolod
date Wed, 06 Sep 2006 12:57:50 -0700
parents 9a1e4bca7d8b
children f157e22c70c4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1548
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
1 /*
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
2 * Audacious: A cross-platform multimedia player
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
3 * Copyright (c) 2006 William Pitcock, Tony Vroon, George Averill,
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
4 * Giacomo Lozito, Derek Pomery and Yoshiki Yazawa.
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
5 *
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
6 * This program is free software; you can redistribute it and/or modify
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
7 * it under the terms of the GNU General Public License as published by
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
9 * (at your option) any later version.
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
10 *
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
11 * This program is distributed in the hope that it will be useful,
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
14 * GNU General Public License for more details.
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
15 *
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
17 * along with this program; if not, write to the Free Software
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
19 */
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
20
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
21 #ifndef _PLAYLIST_CONTAINER_H_
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
22 #define _PLAYLIST_CONTAINER_H_
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
23
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
24 struct _PlaylistContainer {
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
25 char *name; /* human-readable name */
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
26 char *ext; /* extension */
1559
9a1e4bca7d8b [svn] - m3u works again
nenolod
parents: 1553
diff changeset
27 void (*plc_read)(const gchar *filename, gint pos); /* plc_load */
9a1e4bca7d8b [svn] - m3u works again
nenolod
parents: 1553
diff changeset
28 void (*plc_write)(const gchar *filename, gint pos); /* plc_write */
1548
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
29 };
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
30
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
31 typedef struct _PlaylistContainer PlaylistContainer;
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
32
1549
854016a03129 [svn] - more
nenolod
parents: 1548
diff changeset
33 #define PLAYLIST_CONTAINER(x) ((PlaylistContainer *)(x))
854016a03129 [svn] - more
nenolod
parents: 1548
diff changeset
34
1548
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
35 extern void playlist_container_register(PlaylistContainer *plc);
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
36 extern void playlist_container_unregister(PlaylistContainer *plc);
1550
be50c53aee09 [svn] - some minimal integration
nenolod
parents: 1549
diff changeset
37 extern void playlist_container_read(char *filename, gint pos);
be50c53aee09 [svn] - some minimal integration
nenolod
parents: 1549
diff changeset
38 extern void playlist_container_write(char *filename, gint pos);
1553
f4ece39e4252 [svn] - saving now uses PlaylistContainer class.
nenolod
parents: 1552
diff changeset
39 extern PlaylistContainer *playlist_container_find(char *ext);
1548
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
40
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
41 #endif