Changeset 3606:19199a3789e6 in roaraudio for libroar/debug.c


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

added roar_debug_get_stderr() and roar_debug_get_stderr()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/debug.c

    r3517 r3606  
    3636#include "libroar.h" 
    3737 
     38static int roar_debug_stderr_fh = ROAR_STDERR; 
     39 
    3840void roar_debug_warn_sysio_real(char * func, char * newfunc, char * info) { 
    3941 struct roar_libroar_config * config = roar_libroar_get_config(); 
     
    4850} 
    4951 
     52void   roar_debug_set_stderr_fh(int fh) { 
     53 roar_debug_stderr_fh = fh; 
     54} 
     55 
     56struct roar_vio_calls * roar_debug_get_stderr(void) { 
     57 static struct roar_vio_calls STDERR; 
     58 
     59 if ( roar_debug_stderr_fh == -1 ) 
     60  return NULL; 
     61 
     62 roar_vio_open_fh(&STDERR, roar_debug_stderr_fh); 
     63 
     64 return &STDERR; 
     65} 
     66 
    5067//ll 
Note: See TracChangeset for help on using the changeset viewer.