changeset 3684:2f9d8b987e40

Export VfsBuffer functions.
author William Pitcock <nenolod@atheme.org>
date Mon, 01 Oct 2007 23:32:57 -0500
parents 4284187479d7
children 0ba593887cae
files src/audacious/plugin.h src/audacious/pluginenum.c
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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__, \
--- 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,
 };
 
 /*****************************************************************/