Changeset 3606:19199a3789e6 in roaraudio


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()

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/debug.h

    r3517 r3606  
    5151void roar_debug_warn_sysio_real(char * func, char * newfunc, char * info); 
    5252 
     53// Error handle: 
     54struct roar_vio_calls; // will be declared later in vio.h 
     55 
     56void   roar_debug_set_stderr_fh(int fh); 
     57 
     58struct roar_vio_calls * roar_debug_get_stderr(void); 
     59 
    5360#endif 
    5461 
  • 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.