Mercurial > audlegacy
annotate libaudacious/vfs.h @ 1963:8cca76c8f5c3 trunk
[svn] - show_newui_window() implementation
author | nenolod |
---|---|
date | Sun, 12 Nov 2006 02:37:32 -0800 |
parents | e9c24e35bd76 |
children | 9f6c17f1cc93 |
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 */ | |
830 | 12 extern gboolean vfs_init(void); |
0 | 13 |
830 | 14 extern VFSFile * vfs_fopen(const gchar * path, |
0 | 15 const gchar * mode); |
830 | 16 extern gint vfs_fclose(VFSFile * file); |
0 | 17 |
830 | 18 extern size_t vfs_fread(gpointer ptr, |
0 | 19 size_t size, |
20 size_t nmemb, | |
21 VFSFile * file); | |
830 | 22 extern size_t vfs_fwrite(gconstpointer ptr, |
0 | 23 size_t size, |
24 size_t nmemb, | |
25 VFSFile *file); | |
26 | |
1683
e9c24e35bd76
[svn] - File stream API for audacious vfs; uses real getc/ungetc functions for vfs_stdio and emulated functions for vfs_gnome
giacomo
parents:
1669
diff
changeset
|
27 extern gint vfs_getc(VFSFile *stream); |
e9c24e35bd76
[svn] - File stream API for audacious vfs; uses real getc/ungetc functions for vfs_stdio and emulated functions for vfs_gnome
giacomo
parents:
1669
diff
changeset
|
28 extern gint vfs_ungetc(gint c, |
e9c24e35bd76
[svn] - File stream API for audacious vfs; uses real getc/ungetc functions for vfs_stdio and emulated functions for vfs_gnome
giacomo
parents:
1669
diff
changeset
|
29 VFSFile *stream); |
1617 | 30 extern gchar *vfs_fgets(gchar *s, |
31 gint n, | |
32 VFSFile *stream); | |
33 | |
830 | 34 extern gint vfs_fseek(VFSFile * file, |
0 | 35 glong offset, |
36 gint whence); | |
830 | 37 extern void vfs_rewind(VFSFile * file); |
38 extern glong vfs_ftell(VFSFile * file); | |
39 extern gboolean vfs_feof(VFSFile * file); | |
0 | 40 |
830 | 41 extern gboolean vfs_file_test(const gchar * path, |
0 | 42 GFileTest test); |
811
86ca43d8a845
[svn] - implement vfs_feof() and vfs_ftell() and update the scrobbler plugin to reflect that,
nenolod
parents:
0
diff
changeset
|
43 |
830 | 44 extern gboolean vfs_is_writeable(const gchar * path); |
0 | 45 |
830 | 46 extern gboolean vfs_truncate(VFSFile * file, glong length); |
0 | 47 |
1669
07143b97314d
[svn] fprintf implementation in the VFS common layer by Luca Barbato. Use it in the Container plugins.
chainsaw
parents:
1617
diff
changeset
|
48 extern int vfs_fprintf(VFSFile *stream, gchar const *format, ...) |
07143b97314d
[svn] fprintf implementation in the VFS common layer by Luca Barbato. Use it in the Container plugins.
chainsaw
parents:
1617
diff
changeset
|
49 __attribute__ ((__format__ (__printf__, 2, 3))); |
0 | 50 |
51 G_END_DECLS | |
52 | |
53 #endif /* VFS_H */ |