From: Daniel Caujolle-B. <f1...@us...> - 2004-04-15 20:55:45
|
Update of /cvsroot/xine/xine-ui/src/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19850/common Modified Files: utils.c utils.h Log Message: dump error to console when verbose is turned on Index: utils.c =================================================================== RCS file: /cvsroot/xine/xine-ui/src/common/utils.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- utils.c 13 Apr 2004 20:16:29 -0000 1.30 +++ utils.c 15 Apr 2004 20:55:36 -0000 1.31 @@ -832,3 +832,19 @@ } #endif /* !HAVE_X11 */ + +void dump_error(int verbosity, char *msg) { + if(verbosity) { + fprintf(stderr, "%s", "\n---------------------- (ERROR) ----------------------\n"); + fputs(msg, stderr); + fprintf(stderr, "%s","\n------------------ (END OF ERROR) -------------------\n\n"); + } +} + +void dump_info(int verbosity, char *msg) { + if(verbosity) { + fprintf(stderr, "%s", "\n---------------------- (INFO) ----------------------\n"); + fputs(msg, stderr); + fprintf(stderr, "%s", "\n------------------- (END OF INFO) ------------------\n\n"); + } +} Index: utils.h =================================================================== RCS file: /cvsroot/xine/xine-ui/src/common/utils.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- utils.h 13 Apr 2004 20:16:30 -0000 1.21 +++ utils.h 15 Apr 2004 20:55:36 -0000 1.22 @@ -92,4 +92,7 @@ void dump_xfree_info(Display *display, int screen, int complete); #endif +void dump_error(int verbosity, char *msg); +void dump_info(int verbosity, char *msg); + #endif |