# HG changeset patch # User William Pitcock # Date 1191299577 18000 # Node ID 2f9d8b987e40257d300486895e9be5ef22866245 # Parent 4284187479d77b48ed1c5d9498d9c577d5102174 Export VfsBuffer functions. diff -r 4284187479d7 -r 2f9d8b987e40 src/audacious/plugin.h --- a/src/audacious/plugin.h Mon Oct 01 23:26:00 2007 -0500 +++ b/src/audacious/plugin.h Mon Oct 01 23:32:57 2007 -0500 @@ -168,6 +168,9 @@ gboolean (*vfs_is_remote)(const gchar * path); gboolean (*vfs_is_streaming)(VFSFile *file); + /* VFS Buffer */ + VFSFile *(*vfs_buffer_new)(gpointer data, gsize size); + VFSFile *(*vfs_buffer_new_from_string)(gchar *str); }; /* Convenience macros for accessing the public API. */ @@ -195,6 +198,10 @@ #define aud_vfs_is_remote _audvt->vfs_is_remote #define aud_vfs_is_streaming _audvt->vfs_is_streaming +#define aud_vfs_buffer_new _audvt->vfs_buffer_new +#define aud_vfs_buffer_new_from_string _audvt->vfs_buffer_new_from_string + + #define DECLARE_PLUGIN(name, init, fini, ...) \ G_BEGIN_DECLS \ static PluginHeader _pluginInfo = { PLUGIN_MAGIC, __AUDACIOUS_PLUGIN_API__, \ diff -r 4284187479d7 -r 2f9d8b987e40 src/audacious/pluginenum.c --- a/src/audacious/pluginenum.c Mon Oct 01 23:26:00 2007 -0500 +++ b/src/audacious/pluginenum.c Mon Oct 01 23:32:57 2007 -0500 @@ -52,6 +52,8 @@ #include "pluginenum.h" +#include "vfs_buffer.h" + const gchar *plugin_dir_list[] = { PLUGINSUBS, NULL @@ -82,6 +84,9 @@ .vfs_file_get_contents = vfs_file_get_contents, .vfs_is_remote = vfs_is_remote, .vfs_is_streaming = vfs_is_streaming, + + .vfs_buffer_new = vfs_buffer_new, + .vfs_buffer_new_from_string = vfs_buffer_new_from_string, }; /*****************************************************************/