[vlc-devel] commit: Messages: missing const, fix Qt4 warning ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Jan 5 21:48:51 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jan 5 22:48:20 2010 +0200| [93334e1d80a63ac0049d41d6e8a309c910f3e78f] | committer: Rémi Denis-Courmont
Messages: missing const, fix Qt4 warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=93334e1d80a63ac0049d41d6e8a309c910f3e78f
---
include/vlc_messages.h | 4 ++--
src/misc/messages.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/vlc_messages.h b/include/vlc_messages.h
index b03ff3e..8fa8976 100644
--- a/include/vlc_messages.h
+++ b/include/vlc_messages.h
@@ -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 ) );
/**
* @}
diff --git a/src/misc/messages.c b/src/misc/messages.c
index 426f2bb..62d5b7c 100644
--- a/src/misc/messages.c
+++ b/src/misc/messages.c
@@ -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 );
More information about the vlc-devel
mailing list