diff options
Diffstat (limited to 'libmpdvdkit2/libdvdcss.h')
-rw-r--r-- | libmpdvdkit2/libdvdcss.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libmpdvdkit2/libdvdcss.h b/libmpdvdkit2/libdvdcss.h index 473644d5ef..a594f883ce 100644 --- a/libmpdvdkit2/libdvdcss.h +++ b/libmpdvdkit2/libdvdcss.h @@ -77,6 +77,14 @@ struct dvdcss_s /***************************************************************************** * Functions used across the library *****************************************************************************/ -void _dvdcss_error ( dvdcss_t, char * ); -void _dvdcss_debug ( dvdcss_t, char * ); +#define print_error(dvdcss,msg) _print_error(dvdcss,msg) +#define print_debug(dvdcss,msg,args...) \ + if( dvdcss->b_debug ) \ + { \ + fprintf( stderr, "libdvdcss debug: " ); \ + fprintf( stderr, msg, ##args ); \ + fprintf( stderr, "\n" ); \ + } + +void _print_error ( dvdcss_t, char * ); |