From 03efb5df5a1914279ddc8dde2c917a770fbea16c Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 27 Jan 2008 15:18:38 +0000 Subject: [PATCH] Fix VLM compilation with --disable-vlm - fixes #1431 --- include/vlc_vlm.h | 8 ++++---- src/input/vlm.c | 20 ++++++++++++++------ 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/include/vlc_vlm.h b/include/vlc_vlm.h index 004e862001..5795b529ed 100644 --- a/include/vlc_vlm.h +++ b/include/vlc_vlm.h @@ -29,10 +29,6 @@ #ifndef _VLC_VLM_H #define _VLC_VLM_H 1 -#ifdef __cpluplus -extern "C" { -#endif - #include /* VLM media */ @@ -151,6 +147,10 @@ struct vlm_message_t }; +#ifdef __cpluplus +extern "C" { +#endif + #define vlm_New( a ) __vlm_New( VLC_OBJECT(a) ) VLC_EXPORT( vlm_t *, __vlm_New, ( vlc_object_t * ) ); VLC_EXPORT( void, vlm_Delete, ( vlm_t * ) ); diff --git a/src/input/vlm.c b/src/input/vlm.c index 1edb0b285a..238522f005 100644 --- a/src/input/vlm.c +++ b/src/input/vlm.c @@ -36,6 +36,8 @@ #include /* tolower() */ #include +#include + #ifdef ENABLE_VLM #ifndef WIN32 @@ -50,7 +52,6 @@ #include #include "input_internal.h" #include -#include #include "vlm_internal.h" #include #include @@ -2926,31 +2927,38 @@ vlm_t *__vlm_New( vlc_object_t *a ) msg_Err( a, "VideoLAN manager support is disabled" ); return NULL; } + void vlm_Delete( vlm_t *a ) { - ; + (void)a; } -int vlm_ExecuteCommand( vlm_t *a, char *b, vlm_message_t **c ) + +int vlm_ExecuteCommand( vlm_t *a, const char *b, vlm_message_t **c ) { - return -1; + abort(); } + vlm_message_t *vlm_MessageNew( const char *psz_name, const char *psz_format, ... ) { + (void)psz_name; (void)psz_format; return NULL; } + vlm_message_t *vlm_MessageAdd( vlm_message_t *p_message, vlm_message_t *p_child ) { - return NULL; + abort(); } + void vlm_MessageDelete( vlm_message_t *a ) { - ; + (void)a; } int vlm_Control( vlm_t *p_vlm, int i_query, ... ) { + (void)p_vlm; (void)i_query; return VLC_EGENERIC; } -- 2.39.2