Changeset 3606:19199a3789e6 in roaraudio
- Timestamp:
- 03/01/10 01:07:55 (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/debug.h
r3517 r3606 51 51 void roar_debug_warn_sysio_real(char * func, char * newfunc, char * info); 52 52 53 // Error handle: 54 struct roar_vio_calls; // will be declared later in vio.h 55 56 void roar_debug_set_stderr_fh(int fh); 57 58 struct roar_vio_calls * roar_debug_get_stderr(void); 59 53 60 #endif 54 61 -
libroar/debug.c
r3517 r3606 36 36 #include "libroar.h" 37 37 38 static int roar_debug_stderr_fh = ROAR_STDERR; 39 38 40 void roar_debug_warn_sysio_real(char * func, char * newfunc, char * info) { 39 41 struct roar_libroar_config * config = roar_libroar_get_config(); … … 48 50 } 49 51 52 void roar_debug_set_stderr_fh(int fh) { 53 roar_debug_stderr_fh = fh; 54 } 55 56 struct 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 50 67 //ll
Note: See TracChangeset
for help on using the changeset viewer.