X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fintf_msg.h;h=71f8e9d0c65fc9de62f67c1ce28a9d9c447c43f6;hb=06fca10912113cbd4287dcc5ab3969409399b38b;hp=17f60d6df88d25e4696b3b5efbfca0967a57af0e;hpb=9cb93a18fa89fd4a9f046d3cce3fd8f765c3c2bc;p=vlc diff --git a/include/intf_msg.h b/include/intf_msg.h index 17f60d6df8..71f8e9d0c6 100644 --- a/include/intf_msg.h +++ b/include/intf_msg.h @@ -4,8 +4,9 @@ * interface, such as message output. See config.h for output configuration. ***************************************************************************** * Copyright (C) 1999, 2000 VideoLAN + * $Id: intf_msg.h,v 1.15 2001/05/31 03:12:49 sam Exp $ * - * Authors: + * Authors: Vincent Seguin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,11 +30,11 @@ * compiler extensions and print the file, the function and the line number * from which they have been called. They call _intf_DbgMsg*() functions after * having added debugging informations. - * Outside DEBUG mode, intf_DbgMsg* functions do nothing. + * Outside trace mode, intf_DbgMsg* functions do nothing. *****************************************************************************/ -#ifdef DEBUG +#ifdef TRACE -/* DEBUG mode */ +/* TRACE mode */ void _intf_DbgMsg ( char *psz_file, char *psz_function, int i_line, char *psz_format, ... ); void _intf_DbgMsgImm ( char *psz_file, char *psz_function, int i_line, @@ -46,9 +47,14 @@ void _intf_DbgMsgImm ( char *psz_file, char *psz_function, int i_line, #else -/* Non-DEBUG mode */ -#define intf_DbgMsg( format, args... ) -#define intf_DbgMsgImm( format, args...) +/* Non-TRACE mode */ +#if defined( _MSC_VER ) +# define intf_DbgMsg +# define intf_DbgMsgImm +#else +# define intf_DbgMsg( format, args... ) +# define intf_DbgMsgImm( format, args...) +#endif #endif @@ -79,7 +85,10 @@ void intf_MsgDestroy ( void ); void intf_Msg ( char *psz_format, ... ); void intf_ErrMsg ( char *psz_format, ... ); -void intf_IntfMsg ( char *psz_format, ... ); +void intf_WarnMsg ( int i_level, char *psz_format, ... ); void intf_MsgImm ( char *psz_format, ... ); void intf_ErrMsgImm ( char *psz_format, ... ); +void intf_WarnMsgImm ( int i_level, char *psz_format, ... ); +void intf_WarnHexDump ( int i_level, void *p_data, int i_size ); +