annotate libaudacious/vfs.h @ 1701:021f87117ac9 trunk

[svn] - do not AC_MSG_ERROR() when libvorbis is not present, just notify the user that vorbis support won't be built
author nenolod
date Fri, 15 Sep 2006 16:34:23 -0700
parents e9c24e35bd76
children 9f6c17f1cc93
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 #ifndef VFS_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 #define VFS_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 #include <glib.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 #include <stdio.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 typedef struct _VFSFile VFSFile;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 G_BEGIN_DECLS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 /* Reserved for private use by BMP */
830
4d60baab67a0 [svn] - use extern here (grr)
nenolod
parents: 811
diff changeset
12 extern gboolean vfs_init(void);
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13
830
4d60baab67a0 [svn] - use extern here (grr)
nenolod
parents: 811
diff changeset
14 extern VFSFile * vfs_fopen(const gchar * path,
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 const gchar * mode);
830
4d60baab67a0 [svn] - use extern here (grr)
nenolod
parents: 811
diff changeset
16 extern gint vfs_fclose(VFSFile * file);
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17
830
4d60baab67a0 [svn] - use extern here (grr)
nenolod
parents: 811
diff changeset
18 extern size_t vfs_fread(gpointer ptr,
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 size_t size,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 size_t nmemb,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 VFSFile * file);
830
4d60baab67a0 [svn] - use extern here (grr)
nenolod
parents: 811
diff changeset
22 extern size_t vfs_fwrite(gconstpointer ptr,
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 size_t size,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 size_t nmemb,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 VFSFile *file);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
3de4bd38fe4f [svn] generic vfs_gets and m3u updated to use vfs
lu_zero
parents: 830
diff changeset
30 extern gchar *vfs_fgets(gchar *s,
3de4bd38fe4f [svn] generic vfs_gets and m3u updated to use vfs
lu_zero
parents: 830
diff changeset
31 gint n,
3de4bd38fe4f [svn] generic vfs_gets and m3u updated to use vfs
lu_zero
parents: 830
diff changeset
32 VFSFile *stream);
3de4bd38fe4f [svn] generic vfs_gets and m3u updated to use vfs
lu_zero
parents: 830
diff changeset
33
830
4d60baab67a0 [svn] - use extern here (grr)
nenolod
parents: 811
diff changeset
34 extern gint vfs_fseek(VFSFile * file,
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 glong offset,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 gint whence);
830
4d60baab67a0 [svn] - use extern here (grr)
nenolod
parents: 811
diff changeset
37 extern void vfs_rewind(VFSFile * file);
4d60baab67a0 [svn] - use extern here (grr)
nenolod
parents: 811
diff changeset
38 extern glong vfs_ftell(VFSFile * file);
4d60baab67a0 [svn] - use extern here (grr)
nenolod
parents: 811
diff changeset
39 extern gboolean vfs_feof(VFSFile * file);
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40
830
4d60baab67a0 [svn] - use extern here (grr)
nenolod
parents: 811
diff changeset
41 extern gboolean vfs_file_test(const gchar * path,
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
4d60baab67a0 [svn] - use extern here (grr)
nenolod
parents: 811
diff changeset
44 extern gboolean vfs_is_writeable(const gchar * path);
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45
830
4d60baab67a0 [svn] - use extern here (grr)
nenolod
parents: 811
diff changeset
46 extern gboolean vfs_truncate(VFSFile * file, glong length);
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 G_END_DECLS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 #endif /* VFS_H */