Mercurial > audlegacy
comparison audacious/playlist_container.h @ 1549:854016a03129 trunk
[svn] - more
author | nenolod |
---|---|
date | Thu, 10 Aug 2006 18:24:11 -0700 |
parents | d5be38600be5 |
children | be50c53aee09 |
comparison
equal
deleted
inserted
replaced
1548:d5be38600be5 | 1549:854016a03129 |
---|---|
22 #define _PLAYLIST_CONTAINER_H_ | 22 #define _PLAYLIST_CONTAINER_H_ |
23 | 23 |
24 struct _PlaylistContainer { | 24 struct _PlaylistContainer { |
25 char *name; /* human-readable name */ | 25 char *name; /* human-readable name */ |
26 char *ext; /* extension */ | 26 char *ext; /* extension */ |
27 void (*plc_load)(char *filename, GList *pl); /* plc_load */ | 27 GList *(*plc_read)(char *filename, GList *pl); /* plc_load */ |
28 void (*plc_write)(char *filename, GList *pl); /* plc_write */ | 28 void (*plc_write)(char *filename, GList *pl); /* plc_write */ |
29 }; | 29 }; |
30 | 30 |
31 typedef struct _PlaylistContainer PlaylistContainer; | 31 typedef struct _PlaylistContainer PlaylistContainer; |
32 | 32 |
33 #define PLAYLIST_CONTAINER(x) ((PlaylistContainer *)(x)) | |
34 | |
33 extern void playlist_container_register(PlaylistContainer *plc); | 35 extern void playlist_container_register(PlaylistContainer *plc); |
34 extern void playlist_container_unregister(PlaylistContainer *plc); | 36 extern void playlist_container_unregister(PlaylistContainer *plc); |
37 extern GList *playlist_container_read(char *filename, GList *list); | |
38 extern void playlist_container_write(char *filename, GList *list); | |
39 | |
35 | 40 |
36 #endif | 41 #endif |