| af_vfs.h | | af_vfs.h | |
| | | | |
| skipping to change at line 37 | | skipping to change at line 37 | |
| #ifndef AUDIOFILE_VFS_H | | #ifndef AUDIOFILE_VFS_H | |
| #define AUDIOFILE_VFS_H 1 | | #define AUDIOFILE_VFS_H 1 | |
| | | | |
| #include <audiofile.h> | | #include <audiofile.h> | |
| #include <sys/types.h> | | #include <sys/types.h> | |
| | | | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| extern "C" { | | extern "C" { | |
| #endif | | #endif | |
| | | | |
|
| typedef struct _AFvirtualfile AFvirtualfile; | | | |
| | | | |
| struct _AFvirtualfile | | struct _AFvirtualfile | |
| { | | { | |
| ssize_t (*read) (AFvirtualfile *vfile, void *data, size_t nbytes); | | ssize_t (*read) (AFvirtualfile *vfile, void *data, size_t nbytes); | |
| AFfileoffset (*length) (AFvirtualfile *vfile); | | AFfileoffset (*length) (AFvirtualfile *vfile); | |
| ssize_t (*write) (AFvirtualfile *vfile, const void *data, size_t nby
tes); | | ssize_t (*write) (AFvirtualfile *vfile, const void *data, size_t nby
tes); | |
| void (*destroy) (AFvirtualfile *vfile); | | void (*destroy) (AFvirtualfile *vfile); | |
| AFfileoffset (*seek) (AFvirtualfile *vfile, AFfileoffset offset, int
is_relative); | | AFfileoffset (*seek) (AFvirtualfile *vfile, AFfileoffset offset, int
is_relative); | |
| AFfileoffset (*tell) (AFvirtualfile *vfile); | | AFfileoffset (*tell) (AFvirtualfile *vfile); | |
| | | | |
| void *closure; | | void *closure; | |
| | | | |
End of changes. 1 change blocks. |
| 2 lines changed or deleted | | 0 lines changed or added | |
|