comparison src/audacious/plugin.h @ 3685:0ba593887cae

Export VfsBufferedFile functions.
author William Pitcock <nenolod@atheme.org>
date Mon, 01 Oct 2007 23:39:22 -0500
parents 2f9d8b987e40
children 12e11b15b549
comparison
equal deleted inserted replaced
3684:2f9d8b987e40 3685:0ba593887cae
169 gboolean (*vfs_is_streaming)(VFSFile *file); 169 gboolean (*vfs_is_streaming)(VFSFile *file);
170 170
171 /* VFS Buffer */ 171 /* VFS Buffer */
172 VFSFile *(*vfs_buffer_new)(gpointer data, gsize size); 172 VFSFile *(*vfs_buffer_new)(gpointer data, gsize size);
173 VFSFile *(*vfs_buffer_new_from_string)(gchar *str); 173 VFSFile *(*vfs_buffer_new_from_string)(gchar *str);
174
175 /* VFS Buffered File */
176 VFSFile *(*vfs_buffered_file_new_from_uri)(const gchar *uri);
177 VFSFile *(*vfs_buffered_file_release_live_fd)(VFSFile *fd);
178
174 }; 179 };
175 180
176 /* Convenience macros for accessing the public API. */ 181 /* Convenience macros for accessing the public API. */
177 /* public name vtable mapping */ 182 /* public name vtable mapping */
178 #define aud_vfs_fopen _audvt->vfs_fopen 183 #define aud_vfs_fopen _audvt->vfs_fopen
199 #define aud_vfs_is_streaming _audvt->vfs_is_streaming 204 #define aud_vfs_is_streaming _audvt->vfs_is_streaming
200 205
201 #define aud_vfs_buffer_new _audvt->vfs_buffer_new 206 #define aud_vfs_buffer_new _audvt->vfs_buffer_new
202 #define aud_vfs_buffer_new_from_string _audvt->vfs_buffer_new_from_string 207 #define aud_vfs_buffer_new_from_string _audvt->vfs_buffer_new_from_string
203 208
209 #define aud_vfs_buffered_file_new_from_uri _audvt->vfs_buffered_file_new_from_uri
210 #define aud_vfs_buffered_file_release_live_fd _audvt->vfs_buffered_file_release_live_fd
204 211
205 #define DECLARE_PLUGIN(name, init, fini, ...) \ 212 #define DECLARE_PLUGIN(name, init, fini, ...) \
206 G_BEGIN_DECLS \ 213 G_BEGIN_DECLS \
207 static PluginHeader _pluginInfo = { PLUGIN_MAGIC, __AUDACIOUS_PLUGIN_API__, \ 214 static PluginHeader _pluginInfo = { PLUGIN_MAGIC, __AUDACIOUS_PLUGIN_API__, \
208 (gchar *)#name, init, fini, NULL, __VA_ARGS__ }; \ 215 (gchar *)#name, init, fini, NULL, __VA_ARGS__ }; \