Changeset 26c146e8ac44d1e23d57c1e950578768c85e4465
- Timestamp:
- 05/31/08 12:29:30
(3 months ago)
- Author:
- Rémi Denis-Courmont <rdenis@simphalempin.com>
- git-committer:
- Rémi Denis-Courmont <rdenis@simphalempin.com> 1212229770 +0300
- git-parent:
[40caaae0a39213f906821ba206cfc1fd59ebdf10]
- git-author:
- Rémi Denis-Courmont <rdenis@simphalempin.com> 1212229770 +0300
- Message:
intf_Create: remove unused parameters
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r358c28c |
r26c146e |
|
| 117 | 117 | * Prototypes |
|---|
| 118 | 118 | *****************************************************************************/ |
|---|
| 119 | | #define intf_Create(a,b,c,d) __intf_Create(VLC_OBJECT(a),b,c,d) |
|---|
| 120 | | VLC_EXPORT( intf_thread_t *, __intf_Create, ( vlc_object_t *, const char *, int, const char *const * ) ); |
|---|
| | 119 | #define intf_Create(a,b) __intf_Create(VLC_OBJECT(a),b) |
|---|
| | 120 | VLC_EXPORT( intf_thread_t *, __intf_Create, ( vlc_object_t *, const char * ) ); |
|---|
| 121 | 121 | VLC_EXPORT( int, intf_RunThread, ( intf_thread_t * ) ); |
|---|
| 122 | 122 | VLC_EXPORT( void, intf_StopThread, ( intf_thread_t * ) ); |
|---|
| r358c28c |
r26c146e |
|
| 132 | 132 | |
|---|
| 133 | 133 | /* initialise the CMML responder interface */ |
|---|
| 134 | | p_sys->p_intf = intf_Create( p_dec, "cmml", 0, NULL ); |
|---|
| | 134 | p_sys->p_intf = intf_Create( p_dec, "cmml" ); |
|---|
| 135 | 135 | intf_RunThread( p_sys->p_intf ); |
|---|
| 136 | 136 | |
|---|
| r358c28c |
r26c146e |
|
| 320 | 320 | |
|---|
| 321 | 321 | /* Try to create the interface */ |
|---|
| 322 | | p_new_intf = intf_Create( p_intf, psz_temp, 0, NULL ); |
|---|
| | 322 | p_new_intf = intf_Create( p_intf, psz_temp ); |
|---|
| 323 | 323 | if( p_new_intf == NULL ) |
|---|
| 324 | 324 | { |
|---|
| r358c28c |
r26c146e |
|
| 1538 | 1538 | intf_thread_t *p_newintf = NULL; |
|---|
| 1539 | 1539 | |
|---|
| 1540 | | p_newintf = intf_Create( p_this->p_libvlc, newval.psz_string, 0, NULL ); |
|---|
| | 1540 | p_newintf = intf_Create( p_this->p_libvlc, newval.psz_string ); |
|---|
| 1541 | 1541 | if( p_newintf ) |
|---|
| 1542 | 1542 | { |
|---|
| r522baa5 |
r26c146e |
|
| 81 | 81 | /** |
|---|
| 82 | 82 | * Create the interface, and prepare it for main loop. |
|---|
| 83 | | * You can give some additional options to be used for interface initialization |
|---|
| 84 | 83 | * |
|---|
| 85 | 84 | * \param p_this the calling vlc_object_t |
|---|
| 86 | 85 | * \param psz_module a preferred interface module |
|---|
| 87 | | * \param i_options number additional options |
|---|
| 88 | | * \param ppsz_options additional option strings |
|---|
| 89 | 86 | * \return a pointer to the created interface thread, NULL on error |
|---|
| 90 | 87 | */ |
|---|
| 91 | | intf_thread_t* __intf_Create( vlc_object_t *p_this, const char *psz_module, |
|---|
| 92 | | int i_options, const char *const *ppsz_options ) |
|---|
| | 88 | intf_thread_t* __intf_Create( vlc_object_t *p_this, const char *psz_module ) |
|---|
| 93 | 89 | { |
|---|
| 94 | 90 | intf_thread_t * p_intf; |
|---|
| … | … | |
| 109 | 105 | p_intf->b_should_run_on_first_thread = false; |
|---|
| 110 | 106 | |
|---|
| 111 | | for( i = 0 ; i< i_options; i++ ) |
|---|
| 112 | | var_OptionParse( p_this, ppsz_options[i], true ); |
|---|
| 113 | | |
|---|
| 114 | 107 | /* Choose the best module */ |
|---|
| 115 | 108 | p_intf->psz_intf = strdup( psz_module ); |
|---|
| … | … | |
| 265 | 258 | /* Try to create the interface */ |
|---|
| 266 | 259 | sprintf( psz_intf, "%s,none", newval.psz_string ); |
|---|
| 267 | | p_intf = intf_Create( p_this->p_libvlc, psz_intf, 0, NULL ); |
|---|
| | 260 | p_intf = intf_Create( p_this->p_libvlc, psz_intf ); |
|---|
| 268 | 261 | free( psz_intf ); |
|---|
| 269 | 262 | if( p_intf == NULL ) |
|---|
| r40caaae |
r26c146e |
|
| 1132 | 1132 | |
|---|
| 1133 | 1133 | /* Try to create the interface */ |
|---|
| 1134 | | p_intf = intf_Create( p_libvlc, psz_module ? psz_module : "$intf", 0, NULL ); |
|---|
| | 1134 | p_intf = intf_Create( p_libvlc, psz_module ? psz_module : "$intf" ); |
|---|
| 1135 | 1135 | if( p_intf == NULL ) |
|---|
| 1136 | 1136 | { |
|---|