]> git.sesse.net Git - vlc/blobdiff - src/config/intf.c
Moving system includes to happen before vlc includes should obviate
[vlc] / src / config / intf.c
index 7afb5048971025d89a954bb56678a01f817e3018..a97ef24e3ae98ef1260e23fc4c77fdfeb1a09ac1 100644 (file)
@@ -25,7 +25,9 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+
+#include <assert.h>
 
 /* Adds an extra interface to the configuration */
 void __config_AddIntf( vlc_object_t *p_this, const char *psz_intf )
@@ -128,10 +130,10 @@ void __config_RemoveIntf( vlc_object_t *p_this, const char *psz_intf )
 }
 
 /*
- * Returns VLC_TRUE if the specified extra interface is present in the
- * configuration, VLC_FALSE if not
+ * Returns true if the specified extra interface is present in the
+ * configuration, false if not
  */
-vlc_bool_t __config_ExistIntf( vlc_object_t *p_this, const char *psz_intf )
+bool __config_ExistIntf( vlc_object_t *p_this, const char *psz_intf )
 {
     assert( psz_intf );
 
@@ -144,7 +146,7 @@ vlc_bool_t __config_ExistIntf( vlc_object_t *p_this, const char *psz_intf )
         if( !strncmp( psz_parser, psz_intf, i_len ) )
         {
             free( psz_config );
-            return VLC_TRUE;
+            return true;
         }
         psz_parser = strchr( psz_parser, ':' );
         if( psz_parser ) psz_parser++; /* skip the ':' */
@@ -157,13 +159,13 @@ vlc_bool_t __config_ExistIntf( vlc_object_t *p_this, const char *psz_intf )
         if( !strncmp( psz_parser, psz_intf, i_len ) )
         {
             free( psz_config );
-            return VLC_TRUE;
+            return true;
         }
         psz_parser = strchr( psz_parser, ':' );
         if( psz_parser ) psz_parser++; /* skip the ':' */
     }
     free( psz_config );
 
-    return VLC_FALSE;
+    return false;
 }