Changeset 5276:0eb24ca6810e in roaraudio for libroar/vio_proto.c


Ignore:
Timestamp:
11/20/11 18:36:49 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

merged VIO's _nonblock() into _ctl() (Closes: #135)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_proto.c

    r5254 r5276  
    121121 calls->write    = roar_vio_proto_write; 
    122122// calls->lseek    = roar_vio_proto_lseek; // TODO: this is currently not supported 
    123  calls->nonblock = roar_vio_proto_nonblock; 
    124123 calls->sync     = roar_vio_proto_sync; 
    125124 calls->ctl      = roar_vio_proto_ctl; 
     
    232231// TODO: this is currently not implemented as this is hard to implement with buffers: 
    233232off_t   roar_vio_proto_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    234  
    235 int     roar_vio_proto_nonblock(struct roar_vio_calls * vio, int state) { 
    236  struct roar_vio_proto * self = vio->inst; 
    237  
    238  /* we can simply use the next layer's nonblock as all we do in addtion * 
    239   * to call there functions are our buffers which do not block normaly  */ 
    240  
    241  return roar_vio_nonblock(self->next, state); 
    242 } 
    243233 
    244234int     roar_vio_proto_sync    (struct roar_vio_calls * vio) { 
Note: See TracChangeset for help on using the changeset viewer.