annotate audacious/playlist_container.h @ 2025:73471758fc71 trunk

[svn] - make sure the mainwin is redrawn correctly when doublesized. reported by Tom St. Denis, closes #674.
author nenolod
date Wed, 29 Nov 2006 19:49:30 -0800
parents f157e22c70c4
children 329fb2453c87
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
1738
f157e22c70c4 [svn] - C++ friendliness
nenolod
parents: 1559
diff changeset
24 G_BEGIN_DECLS
f157e22c70c4 [svn] - C++ friendliness
nenolod
parents: 1559
diff changeset
25
1548
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
26 struct _PlaylistContainer {
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
27 char *name; /* human-readable name */
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
28 char *ext; /* extension */
1559
9a1e4bca7d8b [svn] - m3u works again
nenolod
parents: 1553
diff changeset
29 void (*plc_read)(const gchar *filename, gint pos); /* plc_load */
9a1e4bca7d8b [svn] - m3u works again
nenolod
parents: 1553
diff changeset
30 void (*plc_write)(const gchar *filename, gint pos); /* plc_write */
1548
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
31 };
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
32
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
33 typedef struct _PlaylistContainer PlaylistContainer;
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
34
1549
854016a03129 [svn] - more
nenolod
parents: 1548
diff changeset
35 #define PLAYLIST_CONTAINER(x) ((PlaylistContainer *)(x))
854016a03129 [svn] - more
nenolod
parents: 1548
diff changeset
36
1548
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
37 extern void playlist_container_register(PlaylistContainer *plc);
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
38 extern void playlist_container_unregister(PlaylistContainer *plc);
1550
be50c53aee09 [svn] - some minimal integration
nenolod
parents: 1549
diff changeset
39 extern void playlist_container_read(char *filename, gint pos);
be50c53aee09 [svn] - some minimal integration
nenolod
parents: 1549
diff changeset
40 extern void playlist_container_write(char *filename, gint pos);
1553
f4ece39e4252 [svn] - saving now uses PlaylistContainer class.
nenolod
parents: 1552
diff changeset
41 extern PlaylistContainer *playlist_container_find(char *ext);
1548
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
42
1738
f157e22c70c4 [svn] - C++ friendliness
nenolod
parents: 1559
diff changeset
43 G_END_DECLS
f157e22c70c4 [svn] - C++ friendliness
nenolod
parents: 1559
diff changeset
44
1548
d5be38600be5 [svn] - incomplete PlaylistContainer implementation
nenolod
parents:
diff changeset
45 #endif