Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
c4df6204
Commit
c4df6204
authored
Oct 27, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
messages.c: added msg_GetObjectTypeName
parent
604bcea0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
25 deletions
+32
-25
include/vlc_messages.h
include/vlc_messages.h
+1
-0
src/misc/messages.c
src/misc/messages.c
+31
-25
No files found.
include/vlc_messages.h
View file @
c4df6204
...
...
@@ -196,6 +196,7 @@ void __msg_Destroy ( vlc_object_t * );
VLC_EXPORT
(
msg_subscription_t
*
,
__msg_Subscribe
,
(
vlc_object_t
*
,
int
)
);
VLC_EXPORT
(
void
,
__msg_Unsubscribe
,
(
vlc_object_t
*
,
msg_subscription_t
*
)
);
const
char
*
msg_GetObjectTypeName
(
int
i_object_type
);
/**
* @}
...
...
src/misc/messages.c
View file @
c4df6204
...
...
@@ -194,6 +194,35 @@ void __msg_Unsubscribe( vlc_object_t *p_this, msg_subscription_t *p_sub )
UNLOCK_BANK
;
}
const
char
*
msg_GetObjectTypeName
(
int
i_object_type
)
{
switch
(
i_object_type
)
{
case
VLC_OBJECT_ROOT
:
return
"root"
;
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
*****************************************************************************
...
...
@@ -481,7 +510,7 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
#endif
static
const
char
*
ppsz_type
[
4
]
=
{
""
,
" error"
,
" warning"
,
" debug"
};
static
const
char
*
ppsz_color
[
4
]
=
{
WHITE
,
RED
,
YELLOW
,
GRAY
};
const
char
*
psz_object
=
"private"
;
const
char
*
psz_object
;
int
i_type
=
p_item
->
i_type
;
switch
(
i_type
)
...
...
@@ -500,30 +529,7 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
break
;
}
switch
(
p_item
->
i_object_type
)
{
case
VLC_OBJECT_ROOT
:
psz_object
=
"root"
;
break
;
case
VLC_OBJECT_LIBVLC
:
psz_object
=
"libvlc"
;
break
;
case
VLC_OBJECT_MODULE
:
psz_object
=
"module"
;
break
;
case
VLC_OBJECT_INTF
:
psz_object
=
"interface"
;
break
;
case
VLC_OBJECT_PLAYLIST
:
psz_object
=
"playlist"
;
break
;
case
VLC_OBJECT_ITEM
:
psz_object
=
"item"
;
break
;
case
VLC_OBJECT_INPUT
:
psz_object
=
"input"
;
break
;
case
VLC_OBJECT_DECODER
:
psz_object
=
"decoder"
;
break
;
case
VLC_OBJECT_PACKETIZER
:
psz_object
=
"packetizer"
;
break
;
case
VLC_OBJECT_ENCODER
:
psz_object
=
"encoder"
;
break
;
case
VLC_OBJECT_VOUT
:
psz_object
=
"video output"
;
break
;
case
VLC_OBJECT_AOUT
:
psz_object
=
"audio output"
;
break
;
case
VLC_OBJECT_SOUT
:
psz_object
=
"stream output"
;
break
;
case
VLC_OBJECT_HTTPD
:
psz_object
=
"http server"
;
break
;
case
VLC_OBJECT_HTTPD_HOST
:
psz_object
=
"http server"
;
break
;
case
VLC_OBJECT_DIALOGS
:
psz_object
=
"dialogs provider"
;
break
;
case
VLC_OBJECT_VLM
:
psz_object
=
"vlm"
;
break
;
case
VLC_OBJECT_ANNOUNCE
:
psz_object
=
"announce handler"
;
break
;
case
VLC_OBJECT_DEMUX
:
psz_object
=
"demuxer"
;
break
;
case
VLC_OBJECT_ACCESS
:
psz_object
=
"access"
;
break
;
case
VLC_OBJECT_META_ENGINE
:
psz_object
=
"meta engine"
;
break
;
}
psz_object
=
msg_GetObjectTypeName
(
p_item
->
i_object_type
);
#ifdef UNDER_CE
# define CE_WRITE(str) WriteFile( QUEUE(MSG_QUEUE_NORMAL).logfile, \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment