Changeset 881:fdf97832f81f in roaraudio for include


Ignore:
Timestamp:
11/16/08 00:31:12 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

redesigned the VIO abstarction layer a lot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio.h

    r690 r881  
    4040struct roar_vio_calls { 
    4141 void * inst; 
     42/* 
    4243 ssize_t (*read) (int fd, void *buf, size_t count, void * inst); 
    4344 ssize_t (*write)(int fd, void *buf, size_t count, void * inst); 
    4445 off_t   (*lseek)(int fildes, off_t offset, int whence, void * inst); 
     46*/ 
     47ssize_t (*read )(struct roar_vio_calls * vio, void *buf, size_t count); 
     48ssize_t (*write)(struct roar_vio_calls * vio, void *buf, size_t count); 
     49off_t   (*lseek)(struct roar_vio_calls * vio, off_t offset, int whence); 
    4550}; 
    4651 
    4752int roar_vio_init_calls (struct roar_vio_calls * calls); 
    4853 
     54int roar_vio_set_inst (struct roar_vio_calls * vio, void * inst); 
     55int roar_vio_set_fh   (struct roar_vio_calls * vio, int fh); 
     56 
     57int roar_vio_get_fh   (struct roar_vio_calls * vio); 
     58 
     59ssize_t roar_vio_read (struct roar_vio_calls * vio, void *buf, size_t count); 
     60ssize_t roar_vio_write(struct roar_vio_calls * vio, void *buf, size_t count); 
     61off_t   roar_vio_lseek(struct roar_vio_calls * vio, off_t offset, int whence); 
     62 
     63 
     64// possible VIOs: 
     65 
     66// basic 
     67ssize_t roar_vio_basic_read (struct roar_vio_calls * vio, void *buf, size_t count); 
     68ssize_t roar_vio_basic_write(struct roar_vio_calls * vio, void *buf, size_t count); 
     69off_t   roar_vio_basic_lseek(struct roar_vio_calls * vio, off_t offset, int whence); 
     70 
    4971#endif 
    5072 
Note: See TracChangeset for help on using the changeset viewer.