]> git.sesse.net Git - vlc/commitdiff
Fix VLM compilation with --disable-vlm - fixes #1431
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 27 Jan 2008 15:18:38 +0000 (15:18 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 27 Jan 2008 15:18:38 +0000 (15:18 +0000)
include/vlc_vlm.h
src/input/vlm.c

index 004e862001d8aa3b8ceb2bf6120b8c6219482ad8..5795b529ed7e4eb01b4062dd8e46784ce4e7c1e1 100644 (file)
 #ifndef _VLC_VLM_H
 #define _VLC_VLM_H 1
 
-#ifdef __cpluplus
-extern "C" {
-#endif
-
 #include <vlc_input.h>
 
 /* 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 * ) );
index 1edb0b285af588fd519073ecbbd76ed7f7b40d95..238522f00506b0e4120b426e6ade6d773d9f3120 100644 (file)
@@ -36,6 +36,8 @@
 #include <ctype.h>                                              /* tolower() */
 #include <assert.h>
 
+#include <vlc_vlm.h>
+
 #ifdef ENABLE_VLM
 
 #ifndef WIN32
@@ -50,7 +52,6 @@
 #include <vlc_input.h>
 #include "input_internal.h"
 #include <vlc_stream.h>
-#include <vlc_vlm.h>
 #include "vlm_internal.h"
 #include <vlc_vod.h>
 #include <vlc_charset.h>
@@ -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;
 }