X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fconfig%2Fintf.c;h=fb04f20fd2376780959ac0ab000c6293a22a378d;hb=c95e19193d2e37539bcb56eb3c601f9c831a6028;hp=78f15454c25898bd16800e97e6ad01021a7ee79f;hpb=99fab9089e9e1709d9c3a4bc5ced0c137ac59134;p=vlc diff --git a/src/config/intf.c b/src/config/intf.c index 78f15454c2..fb04f20fd2 100644 --- a/src/config/intf.c +++ b/src/config/intf.c @@ -25,51 +25,13 @@ # include "config.h" #endif -#include -#include "../libvlc.h" -#include "vlc_keys.h" -#include "vlc_charset.h" +#include -#include /* errno */ - -#ifdef HAVE_LIMITS_H -# include -#endif - -#ifdef HAVE_UNISTD_H -# include /* getuid() */ -#endif - -#ifdef HAVE_GETOPT_LONG -# ifdef HAVE_GETOPT_H -# include /* getopt() */ -# endif -#else -# include "../extras/getopt.h" -#endif - -#if defined(HAVE_GETPWUID) -# include /* getpwuid() */ -#endif - -#if defined( HAVE_SYS_STAT_H ) -# include -#endif -#if defined( HAVE_SYS_TYPES_H ) -# include -#endif -#if defined( WIN32 ) -# if !defined( UNDER_CE ) -# include -# endif -#include -#endif - -#include "configuration.h" -#include "modules/modules.h" +#include +#undef config_AddIntf /* Adds an extra interface to the configuration */ -void __config_AddIntf( vlc_object_t *p_this, const char *psz_intf ) +void config_AddIntf( vlc_object_t *p_this, const char *psz_intf ) { assert( psz_intf ); @@ -117,8 +79,9 @@ void __config_AddIntf( vlc_object_t *p_this, const char *psz_intf ) free( psz_config ); } +#undef config_RemoveIntf /* Removes an extra interface from the configuration */ -void __config_RemoveIntf( vlc_object_t *p_this, const char *psz_intf ) +void config_RemoveIntf( vlc_object_t *p_this, const char *psz_intf ) { assert( psz_intf ); @@ -168,11 +131,12 @@ void __config_RemoveIntf( vlc_object_t *p_this, const char *psz_intf ) free( psz_config ); } +#undef config_ExistIntf /* - * 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 ); @@ -185,7 +149,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 ':' */ @@ -198,13 +162,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; }