changeset 1552:aaca4aab4670 trunk

[svn] - further integration
author nenolod
date Thu, 10 Aug 2006 18:40:52 -0700
parents a4180850edfe
children f4ece39e4252
files ChangeLog audacious/playlist_container.c audacious/playlist_container.h
diffstat 3 files changed, 21 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Aug 10 18:39:05 2006 -0700
+++ b/ChangeLog	Thu Aug 10 18:40:52 2006 -0700
@@ -1,3 +1,12 @@
+2006-08-11 01:39:05 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2016]
+  - fix
+  
+
+  Changes:        Modified:
+  +1 -1           trunk/audacious/playlist_container.c  
+
+
 2006-08-11 01:36:15 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2014]
   - some minimal integration
--- a/audacious/playlist_container.c	Thu Aug 10 18:39:05 2006 -0700
+++ b/audacious/playlist_container.c	Thu Aug 10 18:40:52 2006 -0700
@@ -78,3 +78,13 @@
 	plc->plc_write(filename, pos);
 }
 
+gboolean is_playlist_name(char *filename)
+{
+	char *ext = strrchr(filename, '.') + 1;		/* optimization: skip past the dot -nenolod */
+	PlaylistContainer *plc = playlist_container_find(ext);
+
+	if (plc != NULL)
+		return TRUE;
+
+	return FALSE;
+}
--- a/audacious/playlist_container.h	Thu Aug 10 18:39:05 2006 -0700
+++ b/audacious/playlist_container.h	Thu Aug 10 18:40:52 2006 -0700
@@ -24,8 +24,8 @@
 struct _PlaylistContainer {
 	char *name;					/* human-readable name */
 	char *ext;					/* extension */
-	GList *(*plc_read)(char *filename, GList *pl);	/* plc_load */
-	void (*plc_write)(char *filename, GList *pl);	/* plc_write */
+	GList *(*plc_read)(char *filename, gint pos);	/* plc_load */
+	void (*plc_write)(char *filename, gint pos);	/* plc_write */
 };
 
 typedef struct _PlaylistContainer PlaylistContainer;