#include <assert.h>
#include <vlc_charset.h>
+#include "../libvlc.h"
/*****************************************************************************
* Local macros
for( i = 0; i < 2; i++ )
{
vlc_mutex_init( (vlc_object_t *)NULL, &QUEUE(i).lock );
- QUEUE(i).b_overflow = VLC_FALSE;
+ QUEUE(i).b_overflow = false;
QUEUE(i).i_id = i;
QUEUE(i).i_start = 0;
QUEUE(i).i_stop = 0;
UNLOCK_BANK;
}
-const char *msg_GetObjectTypeName(int i_object_type )
-{
- switch( i_object_type )
- {
- case VLC_OBJECT_GLOBAL: return "global";
- case VLC_OBJECT_LIBVLC: return "libvlc";
- case VLC_OBJECT_MODULE: return "module";
- case VLC_OBJECT_INTF: return "interface";
- case VLC_OBJECT_PLAYLIST: return "playlist";
- case VLC_OBJECT_ITEM: return "item";
- case VLC_OBJECT_INPUT: return "input";
- case VLC_OBJECT_DECODER: return "decoder";
- case VLC_OBJECT_PACKETIZER: return "packetizer";
- case VLC_OBJECT_ENCODER: return "encoder";
- case VLC_OBJECT_VOUT: return "video output";
- case VLC_OBJECT_AOUT: return "audio output";
- case VLC_OBJECT_SOUT: return "stream output";
- case VLC_OBJECT_HTTPD: return "http server";
- case VLC_OBJECT_HTTPD_HOST: return "http server";
- case VLC_OBJECT_DIALOGS: return "dialogs provider";
- case VLC_OBJECT_VLM: return "vlm";
- case VLC_OBJECT_ANNOUNCE: return "announce handler";
- case VLC_OBJECT_DEMUX: return "demuxer";
- case VLC_OBJECT_ACCESS: return "access";
- case VLC_OBJECT_META_ENGINE: return "meta engine";
- default: return "private";
- }
-}
-
/*****************************************************************************
* __msg_*: print a message
*****************************************************************************
else
{
/* Pheeew, at last, there is room in the queue! */
- p_queue->b_overflow = VLC_FALSE;
+ p_queue->b_overflow = false;
}
}
else if( ((p_queue->i_stop - p_queue->i_start + 2) % VLC_MSG_QSIZE) == 0 )
if( ((p_queue->i_stop - p_queue->i_start + 2) % VLC_MSG_QSIZE) == 0 )
{
- p_queue->b_overflow = VLC_TRUE;
+ p_queue->b_overflow = true;
if( p_queue->i_id == MSG_QUEUE_NORMAL )
{
p_item->i_type = VLC_MSG_WARN;
p_item->i_object_id = p_this->i_object_id;
- p_item->i_object_type = p_this->i_object_type;
+ p_item->psz_object_type = p_this->psz_object_type;
p_item->psz_module = strdup( "message" );
p_item->psz_msg = strdup( "message queue overflowed" );
p_item->psz_header = NULL;
/* Fill message information fields */
p_item->i_type = i_type;
p_item->i_object_id = p_this->i_object_id;
- p_item->i_object_type = p_this->i_object_type;
+ p_item->psz_object_type = p_this->psz_object_type;
p_item->psz_module = strdup( psz_module );
p_item->psz_msg = psz_str;
p_item->psz_header = psz_header;
break;
}
- psz_object = msg_GetObjectTypeName(p_item->i_object_type);
+ psz_object = p_item->psz_object_type;
#ifdef UNDER_CE
# define CE_WRITE(str) WriteFile( QUEUE(MSG_QUEUE_NORMAL).logfile, \