changeset 3685:0ba593887cae

Export VfsBufferedFile functions.
author William Pitcock <nenolod@atheme.org>
date Mon, 01 Oct 2007 23:39:22 -0500
parents 2f9d8b987e40
children 259b7d3e0976
files src/audacious/plugin.h src/audacious/pluginenum.c
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/plugin.h	Mon Oct 01 23:32:57 2007 -0500
+++ b/src/audacious/plugin.h	Mon Oct 01 23:39:22 2007 -0500
@@ -171,6 +171,11 @@
     /* VFS Buffer */
     VFSFile *(*vfs_buffer_new)(gpointer data, gsize size);
     VFSFile *(*vfs_buffer_new_from_string)(gchar *str);
+
+    /* VFS Buffered File */
+    VFSFile *(*vfs_buffered_file_new_from_uri)(const gchar *uri);
+    VFSFile *(*vfs_buffered_file_release_live_fd)(VFSFile *fd);
+
 };
 
 /* Convenience macros for accessing the public API. */
@@ -201,6 +206,8 @@
 #define aud_vfs_buffer_new		_audvt->vfs_buffer_new
 #define aud_vfs_buffer_new_from_string	_audvt->vfs_buffer_new_from_string
 
+#define aud_vfs_buffered_file_new_from_uri	_audvt->vfs_buffered_file_new_from_uri
+#define aud_vfs_buffered_file_release_live_fd	_audvt->vfs_buffered_file_release_live_fd
 
 #define DECLARE_PLUGIN(name, init, fini, ...) \
 	G_BEGIN_DECLS \
--- a/src/audacious/pluginenum.c	Mon Oct 01 23:32:57 2007 -0500
+++ b/src/audacious/pluginenum.c	Mon Oct 01 23:39:22 2007 -0500
@@ -53,6 +53,7 @@
 #include "pluginenum.h"
 
 #include "vfs_buffer.h"
+#include "vfs_buffered_file.h"
 
 const gchar *plugin_dir_list[] = {
     PLUGINSUBS,
@@ -87,6 +88,9 @@
 
     .vfs_buffer_new = vfs_buffer_new,
     .vfs_buffer_new_from_string = vfs_buffer_new_from_string,
+
+    .vfs_buffered_file_new_from_uri = vfs_buffered_file_new_from_uri,
+    .vfs_buffered_file_release_live_fd = vfs_buffered_file_release_live_fd,
 };
 
 /*****************************************************************/