27 #ifndef LIBAUDCORE_VFS_H
28 #define LIBAUDCORE_VFS_H
35 #define VFS_IS_REGULAR (1 << 0)
36 #define VFS_IS_SYMLINK (1 << 1)
37 #define VFS_IS_DIR (1 << 2)
38 #define VFS_IS_EXECUTABLE (1 << 3)
39 #define VFS_EXISTS (1 << 4)
54 void * (* vfs_fopen_impl) (
const char *
filename,
const char * mode);
84 char * (* vfs_get_metadata_impl) (
VFSFile * file,
const char * field);
88 #define WARN_RETURN __attribute__ ((warn_unused_result))
102 int64_t
vfs_fwrite (
const void * ptr, int64_t size, int64_t nmemb,
VFSFile * file)
110 ((__format__ (__printf__, 2, 3)));