]> git.sesse.net Git - vlc/blobdiff - src/control/core.c
Fix prototypes
[vlc] / src / control / core.c
index d7b220c2235d22de9c0730573e0dc0751f66a1f1..b5efae28472fff3e93db04dca6297ee1aaaf2dea 100644 (file)
@@ -169,7 +169,7 @@ void libvlc_release( libvlc_instance_t *p_instance )
 void libvlc_add_intf( libvlc_instance_t *p_i, const char *name,
                       libvlc_exception_t *p_e )
 {
-    if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name, false, true, 0, NULL ) )
+    if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name, true ) )
         RAISEVOID( "Interface initialization failed" );
 }
 
@@ -177,8 +177,8 @@ void libvlc_wait( libvlc_instance_t *p_i )
 {
     libvlc_int_t *p_libvlc = p_i->p_libvlc_int;
     vlc_object_lock( p_libvlc );
-    if( vlc_object_alive( p_libvlc ) )
-        while( !vlc_object_wait( p_libvlc ) );
+    while( vlc_object_alive( p_libvlc ) )
+        vlc_object_wait( p_libvlc );
     vlc_object_unlock( p_libvlc );
 }
 
@@ -187,17 +187,17 @@ int libvlc_get_vlc_id( libvlc_instance_t *p_instance )
     return p_instance->p_libvlc_int->i_object_id;
 }
 
-const char * libvlc_get_version()
+const char * libvlc_get_version(void)
 {
     return VLC_Version();
 }
 
-const char * libvlc_get_compiler()
+const char * libvlc_get_compiler(void)
 {
     return VLC_Compiler();
 }
 
-const char * libvlc_get_changeset()
+const char * libvlc_get_changeset(void)
 {
     return VLC_Changeset();
 }