diff src/audacious/playlist.h @ 2636:517d13842fe7 trunk

[svn] improve support for static playlist. - Playlist.attribute has been introduced. if loading playlist file is marked as static playlist, this value would be set. - now user can specify whether save as a static playlist or not. - thanks to Playlist.attribute, meaningful mtime in a static playlist will be preserved.
author yaz
date Wed, 21 Mar 2007 02:13:02 -0700
parents 704437e446d2
children c06b07b17fb5
line wrap: on
line diff
--- a/src/audacious/playlist.h	Wed Mar 21 01:59:48 2007 -0700
+++ b/src/audacious/playlist.h	Wed Mar 21 02:13:02 2007 -0700
@@ -73,6 +73,13 @@
 } PlaylistEntry;
 
 #define PLAYLIST(x)  ((Playlist *)(x))
+
+typedef enum {
+    PLAYLIST_PLAIN = 0,
+    PLAYLIST_STATIC = 1,
+//  PLAYLIST_FOO = 1 << 1, // for future use.
+} PlaylistAttribute;
+
 typedef struct _Playlist {
     gchar         *title;
     gchar         *filename;
@@ -88,6 +95,7 @@
     gboolean       loading_playlist;
     GMutex        *mutex;       /* this is required for multiple playlist */
     GList *tail; /* marker for the last element in playlist->entries */
+    gint           attribute; /* PlaylistAttribute */
 } Playlist;
 
 typedef enum {