Mercurial > audlegacy
diff src/audacious/vfs.h @ 2562:07b990906823 trunk
[svn] - add reference-counting to VFS and add new function, vfs_dup() to
mark a VFS handle as duplicated.
author | nenolod |
---|---|
date | Sat, 24 Feb 2007 06:01:39 -0800 |
parents | 3e3d34173207 |
children | ac22b2cb6013 |
line wrap: on
line diff
--- a/src/audacious/vfs.h Fri Feb 23 20:10:54 2007 -0800 +++ b/src/audacious/vfs.h Sat Feb 24 06:01:39 2007 -0800 @@ -30,6 +30,7 @@ * @uri: The URI of the stream. * @handle: Opaque data used by the transport plugins. * @base: The base vtable used for VFS functions. + * @ref: The amount of references that the VFSFile object has. * * #VFSFile objects describe a VFS stream. **/ @@ -37,6 +38,7 @@ gchar *uri; gpointer handle; VFSConstructor *base; + gint ref; }; /** @@ -83,6 +85,8 @@ const gchar * mode); extern gint vfs_fclose(VFSFile * file); +extern VFSFile * vfs_dup(VFSFile *in); + extern size_t vfs_fread(gpointer ptr, size_t size, size_t nmemb,