Changeset c4df6204812f43d256441339fbddf055443ec176

Show
Ignore:
Timestamp:
10/27/06 19:40:46 (2 years ago)
Author:
Damien Fouilleul <damienf@videolan.org>
git-committer:
Damien Fouilleul <damienf@videolan.org> 1161970846 +0000
git-parent:

[604bcea0bce2d1560b1170608cc25fff3bfa49c7]

git-author:
Damien Fouilleul <damienf@videolan.org> 1161970846 +0000
Message:

messages.c: added msg_GetObjectTypeName

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_messages.h

    rb6d0e5a rc4df620  
    197197VLC_EXPORT( void, __msg_Unsubscribe, ( vlc_object_t *, msg_subscription_t * ) ); 
    198198 
     199const char *msg_GetObjectTypeName(int i_object_type ); 
    199200 
    200201/** 
  • src/misc/messages.c

    r8f1b244 rc4df620  
    195195} 
    196196 
     197const char *msg_GetObjectTypeName(int i_object_type ) 
     198{ 
     199    switch( i_object_type ) 
     200    { 
     201        case VLC_OBJECT_ROOT: return "root"; 
     202        case VLC_OBJECT_LIBVLC: return "libvlc"; 
     203        case VLC_OBJECT_MODULE: return "module"; 
     204        case VLC_OBJECT_INTF: return "interface"; 
     205        case VLC_OBJECT_PLAYLIST: return "playlist"; 
     206        case VLC_OBJECT_ITEM: return "item"; 
     207        case VLC_OBJECT_INPUT: return "input"; 
     208        case VLC_OBJECT_DECODER: return "decoder"; 
     209        case VLC_OBJECT_PACKETIZER: return "packetizer"; 
     210        case VLC_OBJECT_ENCODER: return "encoder"; 
     211        case VLC_OBJECT_VOUT: return "video output"; 
     212        case VLC_OBJECT_AOUT: return "audio output"; 
     213        case VLC_OBJECT_SOUT: return "stream output"; 
     214        case VLC_OBJECT_HTTPD: return "http server"; 
     215        case VLC_OBJECT_HTTPD_HOST: return "http server"; 
     216        case VLC_OBJECT_DIALOGS: return "dialogs provider"; 
     217        case VLC_OBJECT_VLM: return "vlm"; 
     218        case VLC_OBJECT_ANNOUNCE: return "announce handler"; 
     219        case VLC_OBJECT_DEMUX: return "demuxer"; 
     220        case VLC_OBJECT_ACCESS: return "access"; 
     221        case VLC_OBJECT_META_ENGINE: return "meta engine"; 
     222        default: return "private"; 
     223    } 
     224} 
     225 
    197226/***************************************************************************** 
    198227 * __msg_*: print a message 
     
    482511    static const char * ppsz_type[4] = { "", " error", " warning", " debug" }; 
    483512    static const char *ppsz_color[4] = { WHITE, RED, YELLOW, GRAY }; 
    484     const char *psz_object = "private"
     513    const char *psz_object
    485514    int i_type = p_item->i_type; 
    486515 
     
    501530    } 
    502531 
    503     switch( p_item->i_object_type ) 
    504     { 
    505         case VLC_OBJECT_ROOT: psz_object = "root"; break; 
    506         case VLC_OBJECT_LIBVLC: psz_object = "libvlc"; break; 
    507         case VLC_OBJECT_MODULE: psz_object = "module"; break; 
    508         case VLC_OBJECT_INTF: psz_object = "interface"; break; 
    509         case VLC_OBJECT_PLAYLIST: psz_object = "playlist"; break; 
    510         case VLC_OBJECT_ITEM: psz_object = "item"; break; 
    511         case VLC_OBJECT_INPUT: psz_object = "input"; break; 
    512         case VLC_OBJECT_DECODER: psz_object = "decoder"; break; 
    513         case VLC_OBJECT_PACKETIZER: psz_object = "packetizer"; break; 
    514         case VLC_OBJECT_ENCODER: psz_object = "encoder"; break; 
    515         case VLC_OBJECT_VOUT: psz_object = "video output"; break; 
    516         case VLC_OBJECT_AOUT: psz_object = "audio output"; break; 
    517         case VLC_OBJECT_SOUT: psz_object = "stream output"; break; 
    518         case VLC_OBJECT_HTTPD: psz_object = "http server"; break; 
    519         case VLC_OBJECT_HTTPD_HOST: psz_object = "http server"; break; 
    520         case VLC_OBJECT_DIALOGS: psz_object = "dialogs provider"; break; 
    521         case VLC_OBJECT_VLM: psz_object = "vlm"; break; 
    522         case VLC_OBJECT_ANNOUNCE: psz_object = "announce handler"; break; 
    523         case VLC_OBJECT_DEMUX: psz_object = "demuxer"; break; 
    524         case VLC_OBJECT_ACCESS: psz_object = "access"; break; 
    525         case VLC_OBJECT_META_ENGINE: psz_object = "meta engine"; break; 
    526     } 
     532    psz_object = msg_GetObjectTypeName(p_item->i_object_type); 
    527533 
    528534#ifdef UNDER_CE