Mercurial > audlegacy-plugins
diff src/pls/pls.c @ 2057:cf4fa45ffd80
playlist API vtabling
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sat, 13 Oct 2007 23:09:40 -0500 |
parents | 059bd21a0c80 |
children | 70b1f1fc4804 |
line wrap: on
line diff
--- a/src/pls/pls.c Sat Oct 13 21:06:30 2007 -0500 +++ b/src/pls/pls.c Sat Oct 13 23:09:40 2007 -0500 @@ -44,7 +44,7 @@ guint i, count, added_count = 0; gchar line_key[10], title_key[10]; gchar *line, *title; - Playlist *playlist = playlist_get_active(); + Playlist *playlist = aud_playlist_get_active(); g_return_if_fail(filename != NULL); @@ -77,12 +77,12 @@ g_snprintf(title_key, sizeof(title_key), "Title%d", i); if ((title = read_ini_string(inifile, "playlist", title_key))) - playlist_load_ins_file(playlist, uri, filename, pos, title, -1); + aud_playlist_load_ins_file(playlist, uri, filename, pos, title, -1); else - playlist_load_ins_file(playlist, uri, filename, pos, NULL, -1); + aud_playlist_load_ins_file(playlist, uri, filename, pos, NULL, -1); } else - playlist_load_ins_file(playlist, uri, filename, pos, NULL, -1); + aud_playlist_load_ins_file(playlist, uri, filename, pos, NULL, -1); added_count++; @@ -101,13 +101,13 @@ { GList *node; VFSFile *file = aud_vfs_fopen(filename, "wb"); - Playlist *playlist = playlist_get_active(); + Playlist *playlist = aud_playlist_get_active(); g_return_if_fail(file != NULL); g_return_if_fail(playlist != NULL); aud_vfs_fprintf(file, "[playlist]\n"); - aud_vfs_fprintf(file, "NumberOfEntries=%d\n", playlist_get_length(playlist)); + aud_vfs_fprintf(file, "NumberOfEntries=%d\n", aud_playlist_get_length(playlist)); PLAYLIST_LOCK(playlist);