Mercurial > audlegacy
annotate libaudacious/vfs.h @ 811:86ca43d8a845 trunk
[svn] - implement vfs_feof() and vfs_ftell() and update the scrobbler plugin to reflect that,
by external contributor: Leonardo Boshell <leonardop -at- gentoo.org>
author | nenolod |
---|---|
date | Thu, 09 Mar 2006 19:03:27 -0800 |
parents | cb178e5ad177 |
children | 4d60baab67a0 |
rev | line source |
---|---|
0 | 1 #ifndef VFS_H |
2 #define VFS_H | |
3 | |
4 #include <glib.h> | |
5 #include <stdio.h> | |
6 | |
7 typedef struct _VFSFile VFSFile; | |
8 | |
9 G_BEGIN_DECLS | |
10 | |
11 /* Reserved for private use by BMP */ | |
12 gboolean vfs_init(void); | |
13 | |
14 VFSFile * vfs_fopen(const gchar * path, | |
15 const gchar * mode); | |
16 gint vfs_fclose(VFSFile * file); | |
17 | |
18 size_t vfs_fread(gpointer ptr, | |
19 size_t size, | |
20 size_t nmemb, | |
21 VFSFile * file); | |
22 size_t vfs_fwrite(gconstpointer ptr, | |
23 size_t size, | |
24 size_t nmemb, | |
25 VFSFile *file); | |
26 | |
27 gint vfs_fseek(VFSFile * file, | |
28 glong offset, | |
29 gint whence); | |
30 void vfs_rewind(VFSFile * file); | |
31 glong vfs_ftell(VFSFile * file); | |
811
86ca43d8a845
[svn] - implement vfs_feof() and vfs_ftell() and update the scrobbler plugin to reflect that,
nenolod
parents:
0
diff
changeset
|
32 gboolean vfs_feof(VFSFile * file); |
0 | 33 |
34 gboolean vfs_file_test(const gchar * path, | |
35 GFileTest test); | |
811
86ca43d8a845
[svn] - implement vfs_feof() and vfs_ftell() and update the scrobbler plugin to reflect that,
nenolod
parents:
0
diff
changeset
|
36 |
0 | 37 gboolean vfs_is_writeable(const gchar * path); |
38 | |
39 gboolean vfs_truncate(VFSFile * file, glong length); | |
40 | |
41 | |
42 G_END_DECLS | |
43 | |
44 #endif /* VFS_H */ |