Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
93334e1d
Commit
93334e1d
authored
Jan 05, 2010
by
Rémi Denis-Courmont
Browse files
Messages: missing const, fix Qt4 warning
parent
4bd67b7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/vlc_messages.h
View file @
93334e1d
...
...
@@ -118,8 +118,8 @@ VLC_EXPORT( void, msg_Unsubscribe, ( msg_subscription_t * ) );
/* Enable or disable a certain object debug messages */
#define msg_EnableObjectPrinting(a,b) __msg_EnableObjectPrinting(VLC_OBJECT(a),b)
#define msg_DisableObjectPrinting(a,b) __msg_DisableObjectPrinting(VLC_OBJECT(a),b)
VLC_EXPORT
(
void
,
__msg_EnableObjectPrinting
,
(
vlc_object_t
*
,
char
*
psz_object
)
);
VLC_EXPORT
(
void
,
__msg_DisableObjectPrinting
,
(
vlc_object_t
*
,
char
*
psz_object
)
);
VLC_EXPORT
(
void
,
__msg_EnableObjectPrinting
,
(
vlc_object_t
*
,
const
char
*
psz_object
)
);
VLC_EXPORT
(
void
,
__msg_DisableObjectPrinting
,
(
vlc_object_t
*
,
const
char
*
psz_object
)
);
/**
* @}
...
...
src/misc/messages.c
View file @
93334e1d
...
...
@@ -133,7 +133,7 @@ void msg_Create (libvlc_int_t *p_libvlc)
static
void
const
*
kObjectPrintingEnabled
=
&
kObjectPrintingEnabled
;
static
void
const
*
kObjectPrintingDisabled
=
&
kObjectPrintingDisabled
;
void
__msg_EnableObjectPrinting
(
vlc_object_t
*
p_this
,
char
*
psz_object
)
void
__msg_EnableObjectPrinting
(
vlc_object_t
*
p_this
,
const
char
*
psz_object
)
{
libvlc_priv_t
*
priv
=
libvlc_priv
(
p_this
->
p_libvlc
);
vlc_rwlock_wrlock
(
&
QUEUE
.
lock
);
...
...
@@ -144,7 +144,7 @@ void __msg_EnableObjectPrinting (vlc_object_t *p_this, char * psz_object)
vlc_rwlock_unlock
(
&
QUEUE
.
lock
);
}
void
__msg_DisableObjectPrinting
(
vlc_object_t
*
p_this
,
char
*
psz_object
)
void
__msg_DisableObjectPrinting
(
vlc_object_t
*
p_this
,
const
char
*
psz_object
)
{
libvlc_priv_t
*
priv
=
libvlc_priv
(
p_this
->
p_libvlc
);
vlc_rwlock_wrlock
(
&
QUEUE
.
lock
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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