Mercurial > audlegacy
diff audacious/plugin.h @ 1951:c2a63f41d8c6 trunk
[svn] - NewVFS input probing layer. VFS-Aware plugins can automatically take
advantage of this. Non VFS-aware plugins (such as FLAC) won't be able
to yet. To take advantage, just modify your probing function as
described in plugin.h.
- __AUDACIOUS_NEWVFS__ is defined to designate availability of this new
probing layer.
author | nenolod |
---|---|
date | Sun, 05 Nov 2006 18:36:26 -0800 |
parents | c4640c88942d |
children | 8d2b17ee266e |
line wrap: on
line diff
--- a/audacious/plugin.h Sun Nov 05 18:00:14 2006 -0800 +++ b/audacious/plugin.h Sun Nov 05 18:36:26 2006 -0800 @@ -32,6 +32,11 @@ #include <glib.h> +#ifdef _AUDACIOUS_CORE +# include "libaudacious/vfs.h" +#else +# include "audacious/vfs.h" +#endif #include "audacious/titlestring.h" #define INPUT_PLUGIN(x) ((InputPlugin *)(x)) @@ -42,6 +47,7 @@ #define LOWLEVEL_PLUGIN(x) ((LowlevelPlugin *)(x)) +#define __AUDACIOUS_NEWVFS__ typedef enum { FMT_U8, @@ -173,9 +179,13 @@ OutputPlugin *output; + /* Added in Audacious 1.1.0 */ TitleInput *(*get_song_tuple) (gchar * filename); void (*set_song_tuple) (TitleInput * tuple); void (*set_status_buffering) (gboolean status); + + /* Added in Audacious 1.2.2 */ + gint (*is_our_file_from_vfs) (gchar *filename, VFSFile *fd); }; struct _GeneralPlugin {