Changeset 1365:b13ad1406546 in roaraudio


Ignore:
Timestamp:
03/24/09 23:37:38 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

make vio dstr optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_dstr.c

    r1359 r1365  
    3535#include "libroar.h" 
    3636 
     37#ifndef ROAR_WITHOUT_VIO_DSTR 
    3738struct { 
    3839 int    id; 
     
    154155 return NULL; 
    155156} 
     157#endif 
    156158 
    157159int     roar_vio_dstr_init_defaults (struct roar_vio_defaults * def, int type, int o_flags, mode_t o_mode) { 
     
    179181} 
    180182 
     183#ifndef ROAR_WITHOUT_VIO_DSTR 
    181184int     roar_vio_open_default (struct roar_vio_calls * calls, struct roar_vio_defaults * def) { 
    182185 if ( calls == NULL || def == NULL ) 
     
    206209 return 0; 
    207210} 
     211#endif 
    208212 
    209213int     roar_vio_open_dstr    (struct roar_vio_calls * calls, char * dstr, struct roar_vio_defaults * def, int dnum) { 
     
    216220                               char * dstr, struct roar_vio_defaults * def, int dnum, 
    217221                               struct roar_vio_calls * vio) { 
     222#ifndef ROAR_WITHOUT_VIO_DSTR 
    218223 struct roar_vio_dstr_chain chain[ROAR_VIO_DSTR_MAX_OBJ_PER_CHAIN]; 
    219224 char * next; 
     
    319324 
    320325 _ret(0); 
     326#else 
     327 return -1; 
     328#endif 
    321329} 
    322330 
    323331#undef _ret 
    324332 
     333#ifndef ROAR_WITHOUT_VIO_DSTR 
    325334int     roar_vio_dstr_parse_opts(struct roar_vio_dstr_chain * chain) { 
    326335 if ( chain == NULL ) 
     
    688697 
    689698#undef _ret 
     699#endif 
    690700 
    691701//ll 
Note: See TracChangeset for help on using the changeset viewer.