Changeset 1388:7ad85038af5c in roaraudio for libroar/vio_pipe.c


Ignore:
Timestamp:
03/25/09 14:32:03 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

make pipe module optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_pipe.c

    r1312 r1388  
    3636 
    3737int roar_vio_open_pipe (struct roar_vio_calls * s0, struct roar_vio_calls * s1, int type, int flags) { 
     38#ifndef ROAR_WITHOUT_VIO_PIPE 
    3839 struct roar_vio_pipe * self; 
    3940 int                    rw = flags & (O_RDONLY|O_WRONLY|O_RDWR); 
     
    108109 
    109110 return 0; 
    110 } 
    111  
     111#else 
     112 return -1; 
     113#endif 
     114} 
     115 
     116#ifndef ROAR_WITHOUT_VIO_PIPE 
    112117int roar_vio_pipe_init (struct roar_vio_calls * s,  struct roar_vio_pipe * self, int flags) { 
    113118 if ( s == NULL || self == NULL ) 
     
    301306 return -1; 
    302307} 
     308#endif 
    303309 
    304310//ll 
Note: See TracChangeset for help on using the changeset viewer.