Changeset 881:fdf97832f81f in roaraudio for include
- Timestamp:
- 11/16/08 00:31:12 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/vio.h
r690 r881 40 40 struct roar_vio_calls { 41 41 void * inst; 42 /* 42 43 ssize_t (*read) (int fd, void *buf, size_t count, void * inst); 43 44 ssize_t (*write)(int fd, void *buf, size_t count, void * inst); 44 45 off_t (*lseek)(int fildes, off_t offset, int whence, void * inst); 46 */ 47 ssize_t (*read )(struct roar_vio_calls * vio, void *buf, size_t count); 48 ssize_t (*write)(struct roar_vio_calls * vio, void *buf, size_t count); 49 off_t (*lseek)(struct roar_vio_calls * vio, off_t offset, int whence); 45 50 }; 46 51 47 52 int roar_vio_init_calls (struct roar_vio_calls * calls); 48 53 54 int roar_vio_set_inst (struct roar_vio_calls * vio, void * inst); 55 int roar_vio_set_fh (struct roar_vio_calls * vio, int fh); 56 57 int roar_vio_get_fh (struct roar_vio_calls * vio); 58 59 ssize_t roar_vio_read (struct roar_vio_calls * vio, void *buf, size_t count); 60 ssize_t roar_vio_write(struct roar_vio_calls * vio, void *buf, size_t count); 61 off_t roar_vio_lseek(struct roar_vio_calls * vio, off_t offset, int whence); 62 63 64 // possible VIOs: 65 66 // basic 67 ssize_t roar_vio_basic_read (struct roar_vio_calls * vio, void *buf, size_t count); 68 ssize_t roar_vio_basic_write(struct roar_vio_calls * vio, void *buf, size_t count); 69 off_t roar_vio_basic_lseek(struct roar_vio_calls * vio, off_t offset, int whence); 70 49 71 #endif 50 72
Note: See TracChangeset
for help on using the changeset viewer.