Changeset 3614:762276cff748 in roaraudio


Ignore:
Timestamp:
03/01/10 03:26:57 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added roar_debug_set_stderr_vio() to support VIO mode

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/debug.h

    r3611 r3614  
    6464 
    6565void   roar_debug_set_stderr_fh(int fh); 
     66void   roar_debug_set_stderr_vio(struct roar_vio_calls * vio); 
    6667void   roar_debug_set_stderr_mode(int mode); 
    6768 
  • libroar/debug.c

    r3611 r3614  
    3636#include "libroar.h" 
    3737 
    38 static int roar_debug_stderr_mode = ROAR_DEBUG_MODE_SYSIO; 
    39 static int roar_debug_stderr_fh   = ROAR_STDERR; 
     38static int                     roar_debug_stderr_mode = ROAR_DEBUG_MODE_SYSIO; 
     39static int                     roar_debug_stderr_fh   = ROAR_STDERR; 
     40static struct roar_vio_calls * roar_debug_stderr_vio  = NULL; 
    4041 
    4142void roar_debug_warn_sysio_real(char * func, char * newfunc, char * info) { 
     
    5556} 
    5657 
     58void   roar_debug_set_stderr_vio(struct roar_vio_calls * vio) { 
     59 roar_debug_stderr_vio = vio; 
     60} 
     61 
    5762void   roar_debug_set_stderr_mode(int mode) { 
    5863 roar_debug_stderr_mode = mode; 
     
    7075 
    7176    return &STDERR; 
     77   break; 
     78  case ROAR_DEBUG_MODE_VIO: 
     79    return roar_debug_stderr_vio; 
    7280   break; 
    7381  default: 
Note: See TracChangeset for help on using the changeset viewer.