# HG changeset patch # User nenolod # Date 1155260452 25200 # Node ID aaca4aab4670348a8077bc63acf2dead0d56ebd1 # Parent a4180850edfee7f4c57e24b9f15ea9c919cc1f55 [svn] - further integration diff -r a4180850edfe -r aaca4aab4670 ChangeLog --- 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 + revision [2016] + - fix + + + Changes: Modified: + +1 -1 trunk/audacious/playlist_container.c + + 2006-08-11 01:36:15 +0000 William Pitcock revision [2014] - some minimal integration diff -r a4180850edfe -r aaca4aab4670 audacious/playlist_container.c --- 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; +} diff -r a4180850edfe -r aaca4aab4670 audacious/playlist_container.h --- 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;