Changeset 5278:b3e0dd3f3141 in roaraudio for libroar/vio_buffer.c


Ignore:
Timestamp:
11/21/11 00:42:20 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

last parts of merging _nonblock into _ctl and fixed sizeof(cmd) of _ctls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_buffer.c

    r5276 r5278  
    146146 struct roar_vio_buffer * self = vio->inst; 
    147147 struct roar_vio_calls  * backend; 
    148  off_t dst = 0; 
     148 roar_off_t dst = 0; 
    149149 
    150150 if ( self->use_re ) { 
     
    182182 
    183183 // do the seek: 
    184  if ( roar_vio_lseek(backend, dst, SEEK_CUR) == (off_t)-1 ) 
     184 if ( roar_vio_lseek(backend, dst, SEEK_CUR) == (roar_off_t)-1 ) 
    185185  return -1; 
    186186 
     
    207207} 
    208208 
    209 off_t   roar_vio_buffer_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) { 
     209roar_off_t   roar_vio_buffer_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    210210 struct roar_vio_buffer * self = vio->inst; 
    211211 size_t newoff; 
    212  off_t  ret; 
    213  off_t  invoff; 
     212 roar_off_t  ret; 
     213 roar_off_t  invoff; 
    214214 
    215215 // in-memory seeking is only supported for SEEK_CUR: 
     
    286286 } 
    287287 
    288  if (ret != (off_t)-1) 
     288 if (ret != (roar_off_t)-1) 
    289289  self->abspos = ret; 
    290290 
     
    292292} 
    293293 
    294 int     roar_vio_buffer_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     294int     roar_vio_buffer_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    295295 struct roar_vio_buffer * self; 
    296296 
Note: See TracChangeset for help on using the changeset viewer.