Changeset 40caaae0a39213f906821ba206cfc1fd59ebdf10

Show
Ignore:
Timestamp:
31/05/08 12:25:56 (6 months ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1212229556 +0300
git-parent:

[9ae47b931d4026f7f41e7f4e729cee35a4d767ff]

git-author:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1212229556 +0300
Message:

libvlc_InternalAddIntf: remove useless options

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/control/core.c

    r06a986a r40caaae  
    170170                      libvlc_exception_t *p_e ) 
    171171{ 
    172     if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name, true, 0, NULL ) ) 
     172    if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name, true ) ) 
    173173        RAISEVOID( "Interface initialization failed" ); 
    174174} 
  • src/control/libvlc_internal.h

    r06a986a r40caaae  
    4848VLC_EXPORT (int, libvlc_InternalDestroy, ( libvlc_int_t *, bool ) ); 
    4949 
    50 VLC_EXPORT (int, libvlc_InternalAddIntf, ( libvlc_int_t *, const char *, 
    51                             bool, int, const char *const * ) ); 
     50VLC_EXPORT (int, libvlc_InternalAddIntf, ( libvlc_int_t *, const char *, bool ) ); 
    5251 
    5352/*************************************************************************** 
  • src/libvlc-common.c

    r9ae47b9 r40caaae  
    807807        { 
    808808            sprintf( psz_temp, "%s,none", psz_module ); 
    809             libvlc_InternalAddIntf( p_libvlc, psz_temp, false, 0, NULL ); 
     809            libvlc_InternalAddIntf( p_libvlc, psz_temp, false ); 
    810810            free( psz_temp ); 
    811811        } 
     
    817817     * Always load the hotkeys interface if it exists 
    818818     */ 
    819     libvlc_InternalAddIntf( p_libvlc, "hotkeys,none", false, 0, NULL ); 
     819    libvlc_InternalAddIntf( p_libvlc, "hotkeys,none", false ); 
    820820 
    821821#ifdef HAVE_DBUS_3 
     
    823823     * we do it only when playlist exists, because dbus module needs it */ 
    824824    if( config_GetInt( p_libvlc, "one-instance" ) > 0 ) 
    825         libvlc_InternalAddIntf( p_libvlc, "dbus,none", false, 0, NULL ); 
     825        libvlc_InternalAddIntf( p_libvlc, "dbus,none", false ); 
    826826 
    827827    /* Prevents the power management daemon from suspending the system 
    828828     * when VLC is active */ 
    829829    if( config_GetInt( p_libvlc, "inhibit" ) > 0 ) 
    830         libvlc_InternalAddIntf( p_libvlc, "inhibit,none", false, 0, NULL ); 
     830        libvlc_InternalAddIntf( p_libvlc, "inhibit,none", false ); 
    831831#endif 
    832832 
     
    838838    if( config_GetInt( p_libvlc, "disable-screensaver" ) ) 
    839839    { 
    840         libvlc_InternalAddIntf( p_libvlc, "screensaver,none", false, 0, NULL ); 
     840        libvlc_InternalAddIntf( p_libvlc, "screensaver,none", false ); 
    841841    } 
    842842#endif 
     
    844844    if( config_GetInt( p_libvlc, "file-logging" ) > 0 ) 
    845845    { 
    846         libvlc_InternalAddIntf( p_libvlc, "logger,none", false, 0, NULL ); 
     846        libvlc_InternalAddIntf( p_libvlc, "logger,none", false ); 
    847847    } 
    848848#ifdef HAVE_SYSLOG_H 
     
    851851        char *logmode = var_CreateGetString( p_libvlc, "logmode" ); 
    852852        var_SetString( p_libvlc, "logmode", "syslog" ); 
    853         libvlc_InternalAddIntf( p_libvlc, "logger,none", false, 0, NULL ); 
     853        libvlc_InternalAddIntf( p_libvlc, "logger,none", false ); 
    854854 
    855855        if( logmode ) 
     
    865865    if( config_GetInt( p_libvlc, "show-intf" ) > 0 ) 
    866866    { 
    867         libvlc_InternalAddIntf( p_libvlc, "showintf,none", false, 0, NULL ); 
     867        libvlc_InternalAddIntf( p_libvlc, "showintf,none", false ); 
    868868    } 
    869869 
    870870    if( config_GetInt( p_libvlc, "network-synchronisation") > 0 ) 
    871871    { 
    872         libvlc_InternalAddIntf( p_libvlc, "netsync,none", false, 0, NULL ); 
     872        libvlc_InternalAddIntf( p_libvlc, "netsync,none", false ); 
    873873    } 
    874874 
     
    11051105 * Add an interface plugin and run it 
    11061106 */ 
    1107 int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, 
    1108                             char const *psz_module, 
    1109                             bool b_play, 
    1110                             int i_options, const char *const *ppsz_options ) 
     1107int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, char const *psz_module, 
     1108                            bool b_play ) 
    11111109{ 
    11121110    int i_err; 
     
    11341132 
    11351133    /* Try to create the interface */ 
    1136     p_intf = intf_Create( p_libvlc, psz_module ? psz_module : "$intf", 
    1137                           i_options, ppsz_options ); 
     1134    p_intf = intf_Create( p_libvlc, psz_module ? psz_module : "$intf", 0, NULL ); 
    11381135    if( p_intf == NULL ) 
    11391136    {