annotate src/pls/pls.c @ 3127:8255be301249

define NEON_DEBUG for the moment
author William Pitcock <nenolod@atheme.org>
date Wed, 06 May 2009 14:06:28 -0500
parents 3134a0987162
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
1 /*
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
2 * Audacious: A cross-platform multimedia player
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
3 * Copyright (c) 2006 William Pitcock, Tony Vroon, George Averill,
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
4 * Giacomo Lozito, Derek Pomery and Yoshiki Yazawa.
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
5 *
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
6 * This program is free software; you can redistribute it and/or modify
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
7 * it under the terms of the GNU General Public License as published by
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
9 * (at your option) any later version.
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
10 *
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
11 * This program is distributed in the hope that it will be useful,
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
14 * GNU General Public License for more details.
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
15 *
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
17 * along with this program; if not, write to the Free Software
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
19 */
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
20
2215
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
21 /* #define AUD_DEBUG 1 */
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
22
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
23 #include <glib.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
24 #include <string.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
25 #include <glib.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
26 #include <glib/gprintf.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
27 #include <stdlib.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
28 #include <string.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
29 #include <time.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
30
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
31 #include <unistd.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
32 #include <sys/types.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
33 #include <sys/stat.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
34 #include <sys/errno.h>
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
35
2971
3134a0987162 - changed include path from audacious to audlegacy.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2576
diff changeset
36 #include <audlegacy/plugin.h>
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
37
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
38 static void
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
39 playlist_load_pls(const gchar * filename, gint pos)
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
40 {
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
41 guint i, count, added_count = 0;
2561
3476ae08cc99 Increase used INI key string buffer sizes from 10 to 16 chars.
Matti Hamalainen <ccr@tnsp.org>
parents: 2496
diff changeset
42 gchar line_key[16], title_key[16];
359
2d13a1d0b7b6 [svn] - support Title[0-9,{1-4}] entries.
nenolod
parents: 12
diff changeset
43 gchar *line, *title;
2057
cf4fa45ffd80 playlist API vtabling
William Pitcock <nenolod@atheme.org>
parents: 2053
diff changeset
44 Playlist *playlist = aud_playlist_get_active();
2420
5aa8588d657a make load list button work for pls. closes #181.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2215
diff changeset
45 gchar *uri = NULL;
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
46
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
47 g_return_if_fail(filename != NULL);
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
48
2050
2ffc6a69fcd1 string API calls -> vtable
William Pitcock <nenolod@atheme.org>
parents: 1978
diff changeset
49 if (!aud_str_has_suffix_nocase(filename, ".pls"))
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
50 return;
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
51
2420
5aa8588d657a make load list button work for pls. closes #181.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2215
diff changeset
52 uri = g_filename_to_uri(filename, NULL, NULL);
5aa8588d657a make load list button work for pls. closes #181.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2215
diff changeset
53
5aa8588d657a make load list button work for pls. closes #181.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2215
diff changeset
54 INIFile *inifile = aud_open_ini_file(uri ? uri : filename);
5aa8588d657a make load list button work for pls. closes #181.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2215
diff changeset
55 g_free(uri); uri = NULL;
5aa8588d657a make load list button work for pls. closes #181.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2215
diff changeset
56
2062
6fc04f4446e1 use INIFile APIs
William Pitcock <nenolod@atheme.org>
parents: 2059
diff changeset
57 if (!(line = aud_read_ini_string(inifile, "playlist", "NumberOfEntries")))
654
8bd5fae12b9c [svn] - adapted to new INI routines
mf0102
parents: 386
diff changeset
58 {
2062
6fc04f4446e1 use INIFile APIs
William Pitcock <nenolod@atheme.org>
parents: 2059
diff changeset
59 aud_close_ini_file(inifile);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
60 return;
654
8bd5fae12b9c [svn] - adapted to new INI routines
mf0102
parents: 386
diff changeset
61 }
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
62
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
63 count = atoi(line);
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
64 g_free(line);
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
65
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
66 for (i = 1; i <= count; i++) {
359
2d13a1d0b7b6 [svn] - support Title[0-9,{1-4}] entries.
nenolod
parents: 12
diff changeset
67 g_snprintf(line_key, sizeof(line_key), "File%d", i);
2062
6fc04f4446e1 use INIFile APIs
William Pitcock <nenolod@atheme.org>
parents: 2059
diff changeset
68 if ((line = aud_read_ini_string(inifile, "playlist", line_key)))
654
8bd5fae12b9c [svn] - adapted to new INI routines
mf0102
parents: 386
diff changeset
69 {
2215
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
70 gchar *uri = aud_construct_uri(line, filename);
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
71 g_free(line);
1398
13dd4f9bd4b4 pls: Write filename paths to disk, not URIs. Convert filename paths in PLS files to valid URIs.
William Pitcock <nenolod@atheme-project.org>
parents: 1395
diff changeset
72
2215
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
73 /* add file only if valid uri has been constructed */
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
74 if (uri) {
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
75 if (aud_cfg->use_pl_metadata)
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
76 {
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
77 g_snprintf(title_key, sizeof(title_key), "Title%d", i);
359
2d13a1d0b7b6 [svn] - support Title[0-9,{1-4}] entries.
nenolod
parents: 12
diff changeset
78
2215
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
79 if ((title = aud_read_ini_string(inifile, "playlist", title_key)))
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
80 aud_playlist_load_ins_file(playlist, uri, filename, pos, title, -1);
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
81 else
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
82 aud_playlist_load_ins_file(playlist, uri, filename, pos, NULL, -1);
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
83 }
654
8bd5fae12b9c [svn] - adapted to new INI routines
mf0102
parents: 386
diff changeset
84 else
2057
cf4fa45ffd80 playlist API vtabling
William Pitcock <nenolod@atheme.org>
parents: 2053
diff changeset
85 aud_playlist_load_ins_file(playlist, uri, filename, pos, NULL, -1);
2215
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
86
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
87 added_count++;
359
2d13a1d0b7b6 [svn] - support Title[0-9,{1-4}] entries.
nenolod
parents: 12
diff changeset
88
2215
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
89 if (pos >= 0)
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
90 pos++;
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
91 }
1398
13dd4f9bd4b4 pls: Write filename paths to disk, not URIs. Convert filename paths in PLS files to valid URIs.
William Pitcock <nenolod@atheme-project.org>
parents: 1395
diff changeset
92 g_free(uri);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
93 }
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
94 }
654
8bd5fae12b9c [svn] - adapted to new INI routines
mf0102
parents: 386
diff changeset
95
2062
6fc04f4446e1 use INIFile APIs
William Pitcock <nenolod@atheme.org>
parents: 2059
diff changeset
96 aud_close_ini_file(inifile);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
97 }
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
98
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
99 static void
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
100 playlist_save_pls(const gchar *filename, gint pos)
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
101 {
2215
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
102 gchar *uri = g_filename_to_uri(filename, NULL, NULL);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
103 GList *node;
2215
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
104 VFSFile *file = aud_vfs_fopen(uri, "wb");
2057
cf4fa45ffd80 playlist API vtabling
William Pitcock <nenolod@atheme.org>
parents: 2053
diff changeset
105 Playlist *playlist = aud_playlist_get_active();
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
106
2215
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
107 AUDDBG("filename=%s\n", filename);
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
108 AUDDBG("uri=%s\n", uri);
9ddfa78b43a0 - now container plugins feed only valid uri to the core.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2062
diff changeset
109
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
110 g_return_if_fail(file != NULL);
384
a91923634161 [svn] - don't use deprecated function playlist_get().
nenolod
parents: 361
diff changeset
111 g_return_if_fail(playlist != NULL);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
112
1978
fa9f85cebade s/vfs_/aud_vfs_/g
William Pitcock <nenolod@atheme.org>
parents: 1961
diff changeset
113 aud_vfs_fprintf(file, "[playlist]\n");
2057
cf4fa45ffd80 playlist API vtabling
William Pitcock <nenolod@atheme.org>
parents: 2053
diff changeset
114 aud_vfs_fprintf(file, "NumberOfEntries=%d\n", aud_playlist_get_length(playlist));
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
115
1675
ae9b0327b620 Fix plugins to conform with PLAYLIST_{UN}LOCK() change.
Matti Hamalainen <ccr@tnsp.org>
parents: 1398
diff changeset
116 PLAYLIST_LOCK(playlist);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
117
386
de15b9e09d2d [svn] - updated m3u.c, xspf.c, pls.c to use the playlist->mutex and no more playlist_get
giacomo
parents: 384
diff changeset
118 for (node = playlist->entries; node; node = g_list_next(node)) {
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
119 PlaylistEntry *entry = PLAYLIST_ENTRY(node->data);
1398
13dd4f9bd4b4 pls: Write filename paths to disk, not URIs. Convert filename paths in PLS files to valid URIs.
William Pitcock <nenolod@atheme-project.org>
parents: 1395
diff changeset
120 gchar *fn;
13dd4f9bd4b4 pls: Write filename paths to disk, not URIs. Convert filename paths in PLS files to valid URIs.
William Pitcock <nenolod@atheme-project.org>
parents: 1395
diff changeset
121
1978
fa9f85cebade s/vfs_/aud_vfs_/g
William Pitcock <nenolod@atheme.org>
parents: 1961
diff changeset
122 if (aud_vfs_is_remote(entry->filename))
1398
13dd4f9bd4b4 pls: Write filename paths to disk, not URIs. Convert filename paths in PLS files to valid URIs.
William Pitcock <nenolod@atheme-project.org>
parents: 1395
diff changeset
123 fn = g_strdup(entry->filename);
13dd4f9bd4b4 pls: Write filename paths to disk, not URIs. Convert filename paths in PLS files to valid URIs.
William Pitcock <nenolod@atheme-project.org>
parents: 1395
diff changeset
124 else
13dd4f9bd4b4 pls: Write filename paths to disk, not URIs. Convert filename paths in PLS files to valid URIs.
William Pitcock <nenolod@atheme-project.org>
parents: 1395
diff changeset
125 fn = g_filename_from_uri(entry->filename, NULL, NULL);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
126
1978
fa9f85cebade s/vfs_/aud_vfs_/g
William Pitcock <nenolod@atheme.org>
parents: 1961
diff changeset
127 aud_vfs_fprintf(file, "File%d=%s\n", g_list_position(playlist->entries, node) + 1,
1398
13dd4f9bd4b4 pls: Write filename paths to disk, not URIs. Convert filename paths in PLS files to valid URIs.
William Pitcock <nenolod@atheme-project.org>
parents: 1395
diff changeset
128 fn);
13dd4f9bd4b4 pls: Write filename paths to disk, not URIs. Convert filename paths in PLS files to valid URIs.
William Pitcock <nenolod@atheme-project.org>
parents: 1395
diff changeset
129
13dd4f9bd4b4 pls: Write filename paths to disk, not URIs. Convert filename paths in PLS files to valid URIs.
William Pitcock <nenolod@atheme-project.org>
parents: 1395
diff changeset
130 g_free(fn);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
131 }
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
132
1675
ae9b0327b620 Fix plugins to conform with PLAYLIST_{UN}LOCK() change.
Matti Hamalainen <ccr@tnsp.org>
parents: 1398
diff changeset
133 PLAYLIST_UNLOCK(playlist);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
134
1978
fa9f85cebade s/vfs_/aud_vfs_/g
William Pitcock <nenolod@atheme.org>
parents: 1961
diff changeset
135 aud_vfs_fclose(file);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
136 }
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
137
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
138 PlaylistContainer plc_pls = {
654
8bd5fae12b9c [svn] - adapted to new INI routines
mf0102
parents: 386
diff changeset
139 .name = "Winamp .pls Playlist Format",
8bd5fae12b9c [svn] - adapted to new INI routines
mf0102
parents: 386
diff changeset
140 .ext = "pls",
8bd5fae12b9c [svn] - adapted to new INI routines
mf0102
parents: 386
diff changeset
141 .plc_read = playlist_load_pls,
8bd5fae12b9c [svn] - adapted to new INI routines
mf0102
parents: 386
diff changeset
142 .plc_write = playlist_save_pls,
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
143 };
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
144
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
145 static void init(void)
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
146 {
2053
059bd21a0c80 PlaylistContainer API updates
William Pitcock <nenolod@atheme.org>
parents: 2050
diff changeset
147 aud_playlist_container_register(&plc_pls);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
148 }
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
149
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
150 static void cleanup(void)
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
151 {
2053
059bd21a0c80 PlaylistContainer API updates
William Pitcock <nenolod@atheme.org>
parents: 2050
diff changeset
152 aud_playlist_container_unregister(&plc_pls);
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
153 }
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
154
1395
761e17b23e0c added Discovery plugin type
Cristi Magherusan <majeru@atheme-project.org>
parents: 1190
diff changeset
155 DECLARE_PLUGIN(pls, init, cleanup, NULL, NULL, NULL, NULL, NULL, NULL);