Changeset 943:0e5abb55ef23 in roaraudio


Ignore:
Timestamp:
12/07/08 22:32:01 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added null io read/write for vio

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio.h

    r918 r943  
    6969off_t   roar_vio_basic_lseek(struct roar_vio_calls * vio, off_t offset, int whence); 
    7070 
     71// null 
     72// this is read an write in one! 
     73ssize_t roar_vio_null_rw    (struct roar_vio_calls * vio, void *buf, size_t count); 
     74 
    7175// pass 
    7276 
  • libroar/vio.c

    r897 r943  
    128128} 
    129129 
     130// null 
     131ssize_t roar_vio_null_rw    (struct roar_vio_calls * vio, void *buf, size_t count) { 
     132 if ( vio == NULL || buf == NULL ) 
     133  return -1; 
     134 
     135 return 0; 
     136} 
     137 
    130138// pass 
    131139ssize_t roar_vio_pass_read (struct roar_vio_calls * vio, void *buf, size_t count) { 
Note: See TracChangeset for help on using the changeset viewer.