# HG changeset patch # User nenolod # Date 1165830785 28800 # Node ID e074c9ba70728f7ad53c94b2f64356ed14ee89b8 # Parent c291952bf462cd8f1eefcf82cc2bac0706669092 [svn] - cleanup the declaration of PlaylistEntry, and add some initial structure for migrating to multiple playlists. diff -r c291952bf462 -r e074c9ba7072 ChangeLog --- a/ChangeLog Mon Dec 11 01:23:47 2006 -0800 +++ b/ChangeLog Mon Dec 11 01:53:05 2006 -0800 @@ -1,3 +1,11 @@ +2006-12-11 09:23:47 +0000 William Pitcock + revision [3155] + - exit gracefully on SIGINT/SIGTERM. + + trunk/audacious/main.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + + 2006-12-09 10:18:22 +0000 Yoshiki Yazawa revision [3153] - build fix diff -r c291952bf462 -r e074c9ba7072 audacious/playlist.h --- a/audacious/playlist.h Mon Dec 11 01:23:47 2006 -0800 +++ b/audacious/playlist.h Mon Dec 11 01:53:05 2006 -0800 @@ -1,5 +1,5 @@ /* Audacious - Cross-platform multimedia player - * Copyright (C) 2005-2006 William Pitcock, Tony Vroon, George Averill, + * Copyright (C) 2005-2007 William Pitcock, Tony Vroon, George Averill, * Giacomo Lozito, Derek Pomery and Yoshiki Yazawa. * * XMMS - Cross-platform multimedia player @@ -54,16 +54,22 @@ } PlaylistFormat; #define PLAYLIST_ENTRY(x) ((PlaylistEntry*)(x)) -struct _PlaylistEntry { +typedef struct _PlaylistEntry { gchar *filename; gchar *title; gint length; gboolean selected; InputPlugin *decoder; TitleInput *tuple; /* cached entry tuple, if available */ -}; +} PlaylistEntry; -typedef struct _PlaylistEntry PlaylistEntry; +#define PLAYLIST(x) ((Playlist *)(x)) +typedef struct _Playlist { + gchar *title; + gchar *filename; + gint length; + GList *entries; +} Playlist; PlaylistEntry *playlist_entry_new(const gchar * filename, const gchar * title, const gint len,