Changeset 5278:b3e0dd3f3141 in roaraudio for libroar/vio.c
- Timestamp:
- 11/21/11 00:42:20 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/vio.c
r5276 r5278 56 56 memset((void*)calls, 0, sizeof(struct roar_vio_calls)); 57 57 58 /*59 calls->read = (ssize_t (*)(int fd, void *buf, size_t count, void * inst))read;60 calls->write = (ssize_t (*)(int fd, void *buf, size_t count, void * inst))write;61 calls->lseek = (off_t (*)(int fildes, off_t offset, int whence, void * inst))lseek;62 */63 64 58 calls->read = roar_vio_basic_read; 65 59 calls->write = roar_vio_basic_write; … … 155 149 } 156 150 157 off_t roar_vio_lseek(struct roar_vio_calls * vio,off_t offset, int whence) {158 off_t ret;159 160 ROAR_DBG("roar_vio_lseek(vio=%p, offset=% u, whence=%i) = ?", vio, (unsignedint)offset, whence);151 roar_off_t roar_vio_lseek(struct roar_vio_calls * vio, roar_off_t offset, int whence) { 152 roar_off_t ret; 153 154 ROAR_DBG("roar_vio_lseek(vio=%p, offset=%li, whence=%i) = ?", vio, (long int)offset, whence); 161 155 162 156 if ( vio == NULL ) { … … 210 204 } 211 205 212 int roar_vio_ctl (struct roar_vio_calls * vio, int cmd, void * data) {206 int roar_vio_ctl (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 213 207 int ret; 214 208 … … 394 388 } 395 389 396 off_t roar_vio_basic_lseek(struct roar_vio_calls * vio,off_t offset, int whence) {390 roar_off_t roar_vio_basic_lseek(struct roar_vio_calls * vio, roar_off_t offset, int whence) { 397 391 #ifdef _CAN_OPERATE 398 392 return lseek(roar_vio_get_fh(vio), offset, whence); … … 411 405 } 412 406 413 int roar_vio_basic_ctl (struct roar_vio_calls * vio, int cmd, void * data) {407 int roar_vio_basic_ctl (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 414 408 #ifdef ROAR_HAVE_H_SYS_IOCTL 415 409 struct roar_vio_sysio_ioctl * sysioctl; … … 715 709 } 716 710 717 off_t roar_vio_pass_lseek(struct roar_vio_calls * vio,off_t offset, int whence) {711 roar_off_t roar_vio_pass_lseek(struct roar_vio_calls * vio, roar_off_t offset, int whence) { 718 712 return roar_vio_lseek((struct roar_vio_calls *) vio->inst, offset, whence); 719 713 } … … 723 717 } 724 718 725 int roar_vio_pass_ctl (struct roar_vio_calls * vio, int cmd, void * data) {719 int roar_vio_pass_ctl (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 726 720 if (vio == NULL) { 727 721 roar_err_set(ROAR_ERROR_FAULT); … … 841 835 842 836 // TODO: we should do a some more intelgent thing here. 843 off_t roar_vio_re_lseek(struct roar_vio_calls * vio,off_t offset, int whence) {837 roar_off_t roar_vio_re_lseek(struct roar_vio_calls * vio, roar_off_t offset, int whence) { 844 838 return roar_vio_lseek((struct roar_vio_calls *) vio->inst, offset, whence); 845 839 }
Note: See TracChangeset
for help on using the changeset viewer.