Changeset 40caaae0a39213f906821ba206cfc1fd59ebdf10
- 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
| r06a986a |
r40caaae |
|
| 170 | 170 | libvlc_exception_t *p_e ) |
|---|
| 171 | 171 | { |
|---|
| 172 | | if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name, true, 0, NULL ) ) |
|---|
| | 172 | if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name, true ) ) |
|---|
| 173 | 173 | RAISEVOID( "Interface initialization failed" ); |
|---|
| 174 | 174 | } |
|---|
| r06a986a |
r40caaae |
|
| 48 | 48 | VLC_EXPORT (int, libvlc_InternalDestroy, ( libvlc_int_t *, bool ) ); |
|---|
| 49 | 49 | |
|---|
| 50 | | VLC_EXPORT (int, libvlc_InternalAddIntf, ( libvlc_int_t *, const char *, |
|---|
| 51 | | bool, int, const char *const * ) ); |
|---|
| | 50 | VLC_EXPORT (int, libvlc_InternalAddIntf, ( libvlc_int_t *, const char *, bool ) ); |
|---|
| 52 | 51 | |
|---|
| 53 | 52 | /*************************************************************************** |
|---|
| r9ae47b9 |
r40caaae |
|
| 807 | 807 | { |
|---|
| 808 | 808 | 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 ); |
|---|
| 810 | 810 | free( psz_temp ); |
|---|
| 811 | 811 | } |
|---|
| … | … | |
| 817 | 817 | * Always load the hotkeys interface if it exists |
|---|
| 818 | 818 | */ |
|---|
| 819 | | libvlc_InternalAddIntf( p_libvlc, "hotkeys,none", false, 0, NULL ); |
|---|
| | 819 | libvlc_InternalAddIntf( p_libvlc, "hotkeys,none", false ); |
|---|
| 820 | 820 | |
|---|
| 821 | 821 | #ifdef HAVE_DBUS_3 |
|---|
| … | … | |
| 823 | 823 | * we do it only when playlist exists, because dbus module needs it */ |
|---|
| 824 | 824 | 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 ); |
|---|
| 826 | 826 | |
|---|
| 827 | 827 | /* Prevents the power management daemon from suspending the system |
|---|
| 828 | 828 | * when VLC is active */ |
|---|
| 829 | 829 | 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 ); |
|---|
| 831 | 831 | #endif |
|---|
| 832 | 832 | |
|---|
| … | … | |
| 838 | 838 | if( config_GetInt( p_libvlc, "disable-screensaver" ) ) |
|---|
| 839 | 839 | { |
|---|
| 840 | | libvlc_InternalAddIntf( p_libvlc, "screensaver,none", false, 0, NULL ); |
|---|
| | 840 | libvlc_InternalAddIntf( p_libvlc, "screensaver,none", false ); |
|---|
| 841 | 841 | } |
|---|
| 842 | 842 | #endif |
|---|
| … | … | |
| 844 | 844 | if( config_GetInt( p_libvlc, "file-logging" ) > 0 ) |
|---|
| 845 | 845 | { |
|---|
| 846 | | libvlc_InternalAddIntf( p_libvlc, "logger,none", false, 0, NULL ); |
|---|
| | 846 | libvlc_InternalAddIntf( p_libvlc, "logger,none", false ); |
|---|
| 847 | 847 | } |
|---|
| 848 | 848 | #ifdef HAVE_SYSLOG_H |
|---|
| … | … | |
| 851 | 851 | char *logmode = var_CreateGetString( p_libvlc, "logmode" ); |
|---|
| 852 | 852 | var_SetString( p_libvlc, "logmode", "syslog" ); |
|---|
| 853 | | libvlc_InternalAddIntf( p_libvlc, "logger,none", false, 0, NULL ); |
|---|
| | 853 | libvlc_InternalAddIntf( p_libvlc, "logger,none", false ); |
|---|
| 854 | 854 | |
|---|
| 855 | 855 | if( logmode ) |
|---|
| … | … | |
| 865 | 865 | if( config_GetInt( p_libvlc, "show-intf" ) > 0 ) |
|---|
| 866 | 866 | { |
|---|
| 867 | | libvlc_InternalAddIntf( p_libvlc, "showintf,none", false, 0, NULL ); |
|---|
| | 867 | libvlc_InternalAddIntf( p_libvlc, "showintf,none", false ); |
|---|
| 868 | 868 | } |
|---|
| 869 | 869 | |
|---|
| 870 | 870 | if( config_GetInt( p_libvlc, "network-synchronisation") > 0 ) |
|---|
| 871 | 871 | { |
|---|
| 872 | | libvlc_InternalAddIntf( p_libvlc, "netsync,none", false, 0, NULL ); |
|---|
| | 872 | libvlc_InternalAddIntf( p_libvlc, "netsync,none", false ); |
|---|
| 873 | 873 | } |
|---|
| 874 | 874 | |
|---|
| … | … | |
| 1105 | 1105 | * Add an interface plugin and run it |
|---|
| 1106 | 1106 | */ |
|---|
| 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 ) |
|---|
| | 1107 | int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc, char const *psz_module, |
|---|
| | 1108 | bool b_play ) |
|---|
| 1111 | 1109 | { |
|---|
| 1112 | 1110 | int i_err; |
|---|
| … | … | |
| 1134 | 1132 | |
|---|
| 1135 | 1133 | /* 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 ); |
|---|
| 1138 | 1135 | if( p_intf == NULL ) |
|---|
| 1139 | 1136 | { |
|---|