-void __msg_Info( void *p_this, const char *psz_format, ... )
-{
- va_list args;
- va_start( args, psz_format );
- QueueMsg( (vlc_object_t *)p_this, VLC_MSG_INFO, "unknown",
- psz_format, args );
- va_end( args );
-}
-
-void __msg_Err( void *p_this, const char *psz_format, ... )
-{
- va_list args;
- va_start( args, psz_format );
- QueueMsg( (vlc_object_t *)p_this, VLC_MSG_ERR, "unknown",
- psz_format, args );
- va_end( args );
-}
-
-void __msg_Warn( void *p_this, const char *psz_format, ... )
-{
- va_list args;
- va_start( args, psz_format );
- QueueMsg( (vlc_object_t *)p_this, VLC_MSG_WARN, "unknown",
- psz_format, args );
- va_end( args );
-}
-
-void __msg_Dbg( void *p_this, const char *psz_format, ... )
-{
- va_list args;
- va_start( args, psz_format );
- QueueMsg( (vlc_object_t *)p_this, VLC_MSG_DBG, "unknown",
- psz_format, args );
- va_end( args );
-}
-
-#if 0
-/*****************************************************************************
- * intf_WarnHexDump : print a hexadecimal dump of a memory area
- *****************************************************************************
- * This is convenient for debugging purposes.
- *****************************************************************************/
-void intf_WarnHexDump( int i_level, void *p_data, int i_size )
-{
- int i_index = 0;
- int i_subindex;
- char p_string[75];
- u8 *p_area = (u8 *)p_data;
-
- msg_Dbg( "dumping %i bytes at address %p", i_size, p_data );
-
- while( i_index < i_size )
- {
- i_subindex = 0;
-
- while( ( i_subindex < 24 ) && ( i_index + i_subindex < i_size ) )
- {
- sprintf( p_string + 3 * i_subindex, "%.2x ",
- p_area[ i_index + i_subindex ] );
-
- i_subindex++;
- }
-
- /* -1 here is safe because we know we printed at least one */
- p_string[ 3 * i_subindex - 1 ] = '\0';
- msg_Dbg( "0x%.4x: %s", i_index, p_string );
-
- i_index += 24;
+/* Generic functions used when variadic macros are not available. */
+#define DECLARE_MSG_FN( FN_NAME, FN_TYPE ) \
+ void FN_NAME( void *p_this, const char *psz_format, ... ) \
+ { \
+ va_list args; \
+ va_start( args, psz_format ); \
+ QueueMsg( (vlc_object_t *)p_this, FN_TYPE, "unknown", \
+ psz_format, args ); \
+ va_end( args ); \