Changeset 630d42d5a3771b4d841233b9b1f1a326225e2319

Show
Ignore:
Timestamp:
25/01/04 18:31:22 (5 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1075051882 +0000
git-parent:

[82a67660c9c7fbc9a1ea78b7929e34af26ebca01]

git-author:
Gildas Bazin <gbazin@videolan.org> 1075051882 +0000
Message:

* modules/access/*: strings review + coding style fixes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access/cdda.c

    r4219568 r630d42d  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000, 2003 VideoLAN 
    5  * $Id: cdda.c,v 1.11 2003/12/22 02:24:51 sam Exp $ 
     5 * $Id: cdda.c,v 1.12 2004/01/25 17:31:22 gbazin Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    4949vlc_module_begin(); 
    5050    set_description( _("Audio CD input") ); 
     51 
     52    add_integer( "cdda-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, 
     53                 CACHING_LONGTEXT, VLC_TRUE ); 
     54 
    5155    set_capability( "access", 70 ); 
    52     add_integer( "cdda-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 
    5356    set_callbacks( AccessOpen, AccessClose ); 
    5457    add_shortcut( "cdda" ); 
  • modules/access/dshow/dshow.cpp

    r80e1dc7 r630d42d  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002, 2003 VideoLAN 
    5  * $Id: dshow.cpp,v 1.24 2003/12/22 17:44:58 gbazin Exp $ 
     5 * $Id: dshow.cpp,v 1.25 2004/01/25 17:31:22 gbazin Exp $ 
    66 * 
    77 * Author: Gildas Bazin <gbazin@netcourrier.com> 
     
    128128#define CONFIG_TEXT N_("Device properties") 
    129129#define CONFIG_LONGTEXT N_( \ 
    130     "Show the properties dialog of the selected device") 
     130    "Show the properties dialog of the selected device.") 
    131131 
    132132static int  AccessOpen ( vlc_object_t * ); 
     
    138138vlc_module_begin(); 
    139139    set_description( _("DirectShow input") ); 
    140     add_category_hint( N_("dshow"), NULL, VLC_TRUE ); 
    141140    add_integer( "dshow-caching", (mtime_t)(0.2*CLOCK_FREQ) / 1000, NULL, 
    142141                 CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 
  • modules/access/dvb/qpsk.c

    r5ca0ebc r630d42d  
    22 * qpsk.c : Satellite input module for vlc 
    33 ***************************************************************************** 
    4  * Copyright (C) 2003 VideoLAN 
     4 * Copyright (C) 2003-2004 VideoLAN 
    55 * 
    66 * Authors: Sam Hocevar <sam@zoy.org> 
     
    4242 
    4343/* Satellite options */ 
    44 #define ADAPTER_TEXT N_("adapter card to tune") 
    45 #define ADAPTER_LONGTEXT N_("adapter cards have a device file in directory named /dev/dvb/adapter[n] with n>=0") 
     44#define ADAPTER_TEXT N_("Adapter card to tune") 
     45#define ADAPTER_LONGTEXT N_("Adapter cards have a device file in directory named /dev/dvb/adapter[n] with n>=0.") 
    4646 
    47 #define DEVICE_TEXT N_("device number to use on adapter") 
     47#define DEVICE_TEXT N_("Device number to use on adapter") 
    4848#define DEVICE_LONGTEXT "" 
    4949 
    50 #define FREQ_TEXT N_("satellite default transponder frequency in kHz") 
     50#define FREQ_TEXT N_("Satellite transponder frequency in kHz") 
    5151#define FREQ_LONGTEXT "" 
    5252 
    53 #define POL_TEXT N_("satellite default transponder polarization") 
     53#define POL_TEXT N_("Satellite transponder polarization") 
    5454#define POL_LONGTEXT "" 
    5555 
    56 #define FEC_TEXT N_("satellite default transponder FEC") 
    57 #define FEC_LONGTEXT N_("FEC=Forward Error Correction mode") 
     56#define FEC_TEXT N_("Satellite transponder FEC") 
     57#define FEC_LONGTEXT N_("FEC=Forward Error Correction mode.") 
    5858 
    59 #define SRATE_TEXT N_("satellite default transponder symbol rate in kHz") 
     59#define SRATE_TEXT N_("Satellite transponder symbol rate in kHz") 
    6060#define SRATE_LONGTEXT "" 
    6161 
    62 #define DISEQC_TEXT N_("use diseqc with antenna") 
     62#define DISEQC_TEXT N_("Use diseqc with antenna") 
    6363#define DISEQC_LONGTEXT "" 
    6464 
    65 #define LNB_LOF1_TEXT N_("antenna lnb_lof1 (kHz)") 
     65#define LNB_LOF1_TEXT N_("Antenna lnb_lof1 (kHz)") 
    6666#define LNB_LOF1_LONGTEXT "" 
    6767 
    68 #define LNB_LOF2_TEXT N_("antenna lnb_lof2 (kHz)") 
     68#define LNB_LOF2_TEXT N_("Antenna lnb_lof2 (kHz)") 
    6969#define LNB_LOF2_LONGTEXT "" 
    7070 
    71 #define LNB_SLOF_TEXT N_("antenna lnb_slof (kHz)") 
     71#define LNB_SLOF_TEXT N_("Antenna lnb_slof (kHz)") 
    7272#define LNB_SLOF_LONGTEXT "" 
    7373 
    74 #define PROBE_TEXT N_("probe the dvb card for capabilities (default disabled)") 
    75 #define PROBE_LONGTEXT N_("some dvb cards do not like to be probed for their capabilities") 
     74#define PROBE_TEXT N_("Probe dvb card for capabilities") 
     75#define PROBE_LONGTEXT N_("Some dvb cards do not like to be probed for their capabilities.") 
    7676 
    7777/* Cable */ 
    78 #define MODULATION_TEXT N_("modulation type") 
    79 #define MODULATION_LONGTEXT N_("modulation type for frontend device ") 
     78#define MODULATION_TEXT N_("Modulation type") 
     79#define MODULATION_LONGTEXT N_("Modulation type for frontend device.") 
    8080 
    8181/* Terrestrial */ 
    82 #define CODE_RATE_HP_TEXT N_("terrestrial high priority stream code rate (FEC)") 
     82#define CODE_RATE_HP_TEXT N_("Terrestrial high priority stream code rate (FEC)") 
    8383#define CODE_RATE_HP_LONGTEXT "" 
    8484 
    85 #define CODE_RATE_LP_TEXT N_("terrestrial low priority stream code rate (FEC)") 
     85#define CODE_RATE_LP_TEXT N_("Terrestrial low priority stream code rate (FEC)") 
    8686#define CODE_RATE_LP_LONGTEXT "" 
    8787 
    88 #define BANDWIDTH_TEXT N_("terrestrial bandwidth") 
    89 #define BANDWIDTH_LONGTEXT N_("terrestrial bandwidth [0=auto,6,7,8 in MHz]") 
     88#define BANDWIDTH_TEXT N_("Terrestrial bandwidth") 
     89#define BANDWIDTH_LONGTEXT N_("Terrestrial bandwidth [0=auto,6,7,8 in MHz]") 
    9090 
    91 #define GUARD_TEXT N_("terrestrial guard interval") 
     91#define GUARD_TEXT N_("Terrestrial guard interval") 
    9292#define GUARD_LONGTEXT "" 
    9393 
    94 #define TRANSMISSION_TEXT N_("terrestrial transmission mode") 
     94#define TRANSMISSION_TEXT N_("Terrestrial transmission mode") 
    9595#define TRANSMISSION_LONGTEXT "" 
    9696 
    97 #define HIERARCHY_TEXT N_("terrestrial hierarchy mode") 
     97#define HIERARCHY_TEXT N_("Terrestrial hierarchy mode") 
    9898#define HIERARCHY_LONGTEXT "" 
    9999 
    100100vlc_module_begin(); 
    101     set_description( _("DVB input module with v4l2 support") ); 
     101    set_description( _("DVB input with v4l2 support") ); 
     102 
     103    add_integer( "adapter", 0, NULL, ADAPTER_TEXT, ADAPTER_LONGTEXT, 
     104                 VLC_FALSE ); 
     105    add_integer( "device", 0, NULL, DEVICE_TEXT, DEVICE_LONGTEXT, VLC_FALSE ); 
     106    add_integer( "frequency", 11954000, NULL, FREQ_TEXT, FREQ_LONGTEXT, 
     107                 VLC_FALSE ); 
     108    add_integer( "polarization", 0, NULL, POL_TEXT, POL_LONGTEXT, VLC_FALSE ); 
     109    add_integer( "fec", 3, NULL, FEC_TEXT, FEC_LONGTEXT, VLC_FALSE ); 
     110    add_integer( "symbol-rate", 27500000, NULL, SRATE_TEXT, SRATE_LONGTEXT, 
     111                 VLC_FALSE ); 
     112    add_bool( "diseqc", 0, NULL, DISEQC_TEXT, DISEQC_LONGTEXT, VLC_TRUE ); 
     113    add_integer( "lnb-lof1",  9750000, NULL, LNB_LOF1_TEXT, LNB_LOF1_LONGTEXT, 
     114                 VLC_TRUE ); 
     115    add_integer( "lnb-lof2", 12999000, NULL, LNB_LOF2_TEXT, LNB_LOF2_LONGTEXT, 
     116                 VLC_TRUE ); 
     117    add_integer( "lnb-slof", 11700000, NULL, LNB_SLOF_TEXT, LNB_SLOF_LONGTEXT, 
     118                 VLC_TRUE ); 
     119    add_bool( "probe", 0, NULL, PROBE_TEXT, PROBE_LONGTEXT, VLC_FALSE ); 
     120    add_integer( "code-rate-hp", 9, NULL, CODE_RATE_HP_TEXT, 
     121                 CODE_RATE_HP_LONGTEXT, VLC_TRUE ); 
     122    add_integer( "code-rate-lp", 9, NULL, CODE_RATE_LP_TEXT, 
     123                 CODE_RATE_LP_LONGTEXT, VLC_TRUE ); 
     124    add_integer( "bandwidth", 0, NULL, BANDWIDTH_TEXT, BANDWIDTH_LONGTEXT, 
     125                 VLC_TRUE ); 
     126    add_integer( "modulation", 0, NULL, MODULATION_TEXT, MODULATION_LONGTEXT, 
     127                 VLC_TRUE ); 
     128    add_integer( "guard", 0, NULL, GUARD_TEXT, GUARD_LONGTEXT, VLC_TRUE ); 
     129    add_integer( "transmission", 0, NULL, TRANSMISSION_TEXT, 
     130                 TRANSMISSION_LONGTEXT, VLC_TRUE ); 
     131    add_integer( "hierarchy", 0, NULL, HIERARCHY_TEXT, HIERARCHY_LONGTEXT, 
     132                 VLC_TRUE ); 
     133 
    102134    set_capability( "access", 0 ); 
    103     add_category_hint( N_("Input"), NULL, VLC_FALSE ); 
    104         add_integer( "adapter", 0, NULL, ADAPTER_TEXT, ADAPTER_LONGTEXT, VLC_FALSE ); 
    105         add_integer( "device", 0, NULL, DEVICE_TEXT, DEVICE_LONGTEXT, VLC_FALSE ); 
    106         add_integer( "frequency", 11954000, NULL, FREQ_TEXT, FREQ_LONGTEXT, VLC_FALSE ); 
    107         add_integer( "polarization", 0, NULL, POL_TEXT, POL_LONGTEXT, VLC_FALSE ); 
    108         add_integer( "fec", 3, NULL, FEC_TEXT, FEC_LONGTEXT, VLC_FALSE ); 
    109         add_integer( "symbol-rate", 27500000, NULL, SRATE_TEXT, SRATE_LONGTEXT, VLC_FALSE ); 
    110         add_bool( "diseqc", 0, NULL, DISEQC_TEXT, DISEQC_LONGTEXT, VLC_FALSE ); 
    111         add_integer( "lnb-lof1",  9750000, NULL, LNB_LOF1_TEXT, LNB_LOF1_LONGTEXT, VLC_FALSE ); 
    112         add_integer( "lnb-lof2", 12999000, NULL, LNB_LOF2_TEXT, LNB_LOF2_LONGTEXT, VLC_FALSE ); 
    113         add_integer( "lnb-slof", 11700000, NULL, LNB_SLOF_TEXT, LNB_SLOF_LONGTEXT, VLC_FALSE ); 
    114         add_bool( "probe", 0, NULL, PROBE_TEXT, PROBE_LONGTEXT, VLC_FALSE ); 
    115         add_integer( "code-rate-hp", 9, NULL, CODE_RATE_HP_TEXT, CODE_RATE_HP_LONGTEXT, VLC_FALSE ); 
    116         add_integer( "code-rate-lp", 9, NULL, CODE_RATE_LP_TEXT, CODE_RATE_LP_LONGTEXT, VLC_FALSE ); 
    117         add_integer( "bandwidth", 0, NULL, BANDWIDTH_TEXT, BANDWIDTH_LONGTEXT, VLC_FALSE ); 
    118         add_integer( "modulation", 0, NULL, MODULATION_TEXT, MODULATION_LONGTEXT, VLC_FALSE ); 
    119         add_integer( "guard", 0, NULL, GUARD_TEXT, GUARD_LONGTEXT, VLC_TRUE ); 
    120         add_integer( "transmission", 0, NULL, TRANSMISSION_TEXT, TRANSMISSION_LONGTEXT, VLC_TRUE ); 
    121         add_integer( "hierarchy", 0, NULL, HIERARCHY_TEXT, HIERARCHY_LONGTEXT, VLC_TRUE ); 
    122135    add_shortcut( "qpsk" ); 
    123136    add_shortcut( "cable" ); 
     
    127140    set_callbacks( E_(Open), E_(Close) ); 
    128141vlc_module_end(); 
    129  
  • modules/access/dvd/dvd.c

    re53ac06 r630d42d  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000-2001 VideoLAN 
    5  * $Id: dvd.c,v 1.9 2003/11/05 00:39:16 gbazin Exp $ 
     5 * $Id: dvd.c,v 1.10 2004/01/25 17:31:22 gbazin Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    6363 * Module descriptor 
    6464 *****************************************************************************/ 
    65 #define CSSMETHOD_TEXT N_("Method to use by libdvdcss for key decryption") 
     65#define CSSMETHOD_TEXT N_("Method used by libdvdcss for decryption") 
    6666#define CSSMETHOD_LONGTEXT N_( \ 
    6767    "Set the method used by libdvdcss for key decryption.\n" \ 
     
    9999    i = 100; 
    100100#endif 
     101 
    101102    add_shortcut( "dvdold" ); 
    102103    add_shortcut( "dvdsimple" ); 
  • modules/access/file.c

    r1e69605 r630d42d  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001, 2002 VideoLAN 
    5  * $Id: file.c,v 1.21 2003/06/09 09:29:12 massiot Exp $ 
     5 * $Id: file.c,v 1.22 2004/01/25 17:31:22 gbazin Exp $ 
    66 * 
    77 * Authors: Christophe Massiot <massiot@via.ecp.fr> 
     
    7777vlc_module_begin(); 
    7878    set_description( _("Standard filesystem file input") ); 
    79     add_category_hint( N_("file"), NULL, VLC_TRUE ); 
    8079    add_integer( "file-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 
    8180    set_capability( "access", 50 ); 
  • modules/access/ftp.c

    rbf805a8 r630d42d  
    11/***************************************************************************** 
    2  * ftp.c: 
     2 * ftp.c: FTP input module 
    33 ***************************************************************************** 
    44 * Copyright (C) 2001-2004 VideoLAN 
    5  * $Id: ftp.c,v 1.24 2004/01/08 00:37:18 fenrir Exp $ 
     5 * $Id: ftp.c,v 1.25 2004/01/25 17:31:22 gbazin Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    4242    "Allows you to modify the default caching value for ftp streams. This " \ 
    4343    "value should be set in millisecond units." ) 
     44#define USER_TEXT N_("FTP user name") 
     45#define USER_LONGTEXT N_("Allows you to modify the user name that will " \ 
     46    "be used for the connection.") 
     47#define PASS_TEXT N_("FTP password") 
     48#define PASS_LONGTEXT N_("Allows you to modify the password that will be " \ 
     49    "used for the connection.") 
     50#define ACCOUNT_TEXT N_("FTP account") 
     51#define ACCOUNT_LONGTEXT N_("Allows you to modify the account that will be " \ 
     52    "used for the connection.") 
    4453 
    4554vlc_module_begin(); 
    4655    set_description( _("FTP input") ); 
    4756    set_capability( "access", 0 ); 
    48     add_category_hint( "stream", NULL, VLC_FALSE ); 
    49         add_integer( "ftp-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL, 
    50                      CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 
    51         add_string( "ftp-user", "anonymous", NULL, "ftp user name", "ftp user name", VLC_FALSE ); 
    52         add_string( "ftp-pwd", "anonymous@dummy.org", NULL, "ftp password", "ftp password, be careful with that option...", VLC_FALSE ); 
    53         add_string( "ftp-account", "anonymous", NULL, "ftp account", "ftp account", VLC_FALSE ); 
     57    add_integer( "ftp-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL, 
     58                 CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 
     59    add_string( "ftp-user", "anonymous", NULL, USER_TEXT, USER_LONGTEXT, 
     60                VLC_FALSE ); 
     61    add_string( "ftp-pwd", "anonymous@dummy.org", NULL, PASS_TEXT, 
     62                PASS_LONGTEXT, VLC_FALSE ); 
     63    add_string( "ftp-account", "anonymous", NULL, ACCOUNT_TEXT, 
     64                ACCOUNT_LONGTEXT, VLC_FALSE ); 
    5465    add_shortcut( "ftp" ); 
    5566    set_callbacks( Open, Close ); 
     
    116127    /* *** Open a TCP connection with server *** */ 
    117128    msg_Dbg( p_input, "waiting for connection..." ); 
    118     p_sys->fd_cmd = net_OpenTCP( p_input, p_sys->url.psz_host, p_sys->url.i_port ); 
     129    p_sys->fd_cmd = net_OpenTCP( p_input, p_sys->url.psz_host, 
     130                                 p_sys->url.i_port ); 
    119131    if( p_sys->fd_cmd < 0 ) 
    120132    { 
     
    173185                case 3: 
    174186                    msg_Dbg( p_input, "account needed" ); 
    175                     var_Create( p_input, "ftp-account", VLC_VAR_STRING | VLC_VAR_DOINHERIT ); 
     187                    var_Create( p_input, "ftp-account", 
     188                                VLC_VAR_STRING | VLC_VAR_DOINHERIT ); 
    176189                    var_Get( p_input, "ftp-account", &val ); 
    177                     if( ftp_SendCommand( p_input, "ACCT %s", val.psz_string ) < 0 || 
     190                    if( ftp_SendCommand( p_input, "ACCT %s", 
     191                                         val.psz_string ) < 0 || 
    178192                        ftp_ReadCommand( p_input, &i_answer, NULL ) < 0 ) 
    179193                    { 
     
    309323 * Read: 
    310324 *****************************************************************************/ 
    311 static ssize_t Read     ( input_thread_t * p_input, byte_t * p_buffer, 
    312                           size_t i_len ) 
     325static ssize_t Read( input_thread_t * p_input, byte_t * p_buffer, 
     326                     size_t i_len ) 
    313327{ 
    314328    access_sys_t *p_sys = p_input->p_access_data; 
     
    320334 * ftp_*: 
    321335 *****************************************************************************/ 
    322 static int ftp_SendCommand( input_thread_t *p_input, char *psz_fmt, ... ) 
     336static int ftp_SendCommand( input_thread_t *p_input, char *psz_fmt, ... ) 
    323337{ 
    324338    access_sys_t *p_sys = p_input->p_access_data; 
     
    332346 
    333347    msg_Dbg( p_input, "ftp_SendCommand:\"%s\"", psz_cmd); 
    334     if( ( i_ret = net_Printf( VLC_OBJECT(p_input), p_sys->fd_cmd, "%s", psz_cmd ) ) > 0 ) 
     348    if( ( i_ret = net_Printf( VLC_OBJECT(p_input), p_sys->fd_cmd, 
     349                              "%s", psz_cmd ) ) > 0 ) 
    335350    { 
    336351        i_ret = net_Printf( VLC_OBJECT(p_input), p_sys->fd_cmd, "\n" ); 
     
    360375 These strings are not part of the requests, except in the case \377\377, 
    361376 where the request contains one \377. */ 
    362 static int ftp_ReadCommand( input_thread_t *p_input, 
    363                             int *pi_answer, char **ppsz_answer ) 
     377static int ftp_ReadCommand( input_thread_t *p_input, 
     378                            int *pi_answer, char **ppsz_answer ) 
    364379{ 
    365380    access_sys_t *p_sys = p_input->p_access_data; 
     
    392407} 
    393408 
    394 static int ftp_StartStream( input_thread_t *p_input, off_t i_start ) 
     409static int ftp_StartStream( input_thread_t *p_input, off_t i_start ) 
    395410{ 
    396411    access_sys_t *p_sys = p_input->p_access_data; 
     
    411426 
    412427    psz_parser = strchr( psz_arg, '(' ); 
    413     if( !psz_parser || sscanf( psz_parser, "(%d,%d,%d,%d,%d,%d", &a1, &a2, &a3, &a4, &p1, &p2 ) < 6 ) 
     428    if( !psz_parser || 
     429        sscanf( psz_parser, "(%d,%d,%d,%d,%d,%d", &a1, &a2, &a3, 
     430                &a4, &p1, &p2 ) < 6 ) 
    414431    { 
    415432        free( psz_arg ); 
     
    460477} 
    461478 
    462 static int ftp_StopStream ( input_thread_t *p_input) 
     479static int ftp_StopStream ( input_thread_t *p_input) 
    463480{ 
    464481    access_sys_t *p_sys = p_input->p_access_data; 
     
    478495    return VLC_SUCCESS; 
    479496} 
    480  
  • modules/access/http.c

    r9ff9865 r630d42d  
    11/***************************************************************************** 
    2  * http.c: HTTP access plug-in 
     2 * http.c: HTTP input module 
    33 ***************************************************************************** 
    44 * Copyright (C) 2001-2004 VideoLAN 
    5  * $Id: http.c,v 1.56 2004/01/15 13:45:27 fenrir Exp $ 
     5 * $Id: http.c,v 1.57 2004/01/25 17:31:22 gbazin Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    4040static void Close( vlc_object_t * ); 
    4141 
    42 #define PROXY_TEXT N_("Specify an HTTP proxy") 
     42#define PROXY_TEXT N_("HTTP proxy") 
    4343#define PROXY_LONGTEXT N_( \ 
    44     "Specify an HTTP proxy to use. It must be in the form " \ 
     44    "You can specify an HTTP proxy to use. It must be of the form " \ 
    4545    "http://myproxy.mydomain:myport/. If none is specified, the HTTP_PROXY " \ 
    4646    "environment variable will be tried." ) 
     
    5151    "value should be set in millisecond units." ) 
    5252 
     53#define USER_TEXT N_("HTTP user name") 
     54#define USER_LONGTEXT N_("Allows you to modify the user name that will " \ 
     55    "be used for the connection (Basic authentification only).") 
     56 
     57#define PASS_TEXT N_("HTTP password") 
     58#define PASS_LONGTEXT N_("Allows you to modify the password that will be " \ 
     59    "used for the connection.") 
     60 
     61#define AGENT_TEXT N_("HTTP user agent") 
     62#define AGENT_LONGTEXT N_("Allows you to modify the user agent that will be " \ 
     63    "used for the connection.") 
     64 
    5365vlc_module_begin(); 
    5466    set_description( _("HTTP input") ); 
    5567    set_capability( "access", 0 ); 
    56     add_category_hint( N_("http"), NULL, VLC_FALSE ); 
    57         add_string( "http-proxy", NULL, NULL, PROXY_TEXT, PROXY_LONGTEXT, VLC_FALSE ); 
    58         add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 
    59         add_string( "http-user", NULL, NULL, "HTTP user name", "HTTP user name for Basic Authentification", VLC_FALSE ); 
    60         add_string( "http-pwd", NULL , NULL, "HTTP password", "HTTP password for Basic Authentification", VLC_FALSE ); 
    61         add_string( "http-user-agent", COPYRIGHT_MESSAGE , NULL, "HTTP user agent", "HTTP user agent", VLC_FALSE ); 
     68 
     69    add_string( "http-proxy", NULL, NULL, PROXY_TEXT, PROXY_LONGTEXT, 
     70                VLC_FALSE ); 
     71    add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL, 
     72                 CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 
     73    add_string( "http-user", NULL, NULL, USER_TEXT, USER_LONGTEXT, VLC_FALSE ); 
     74    add_string( "http-pwd", NULL , NULL, PASS_TEXT, PASS_LONGTEXT, VLC_FALSE ); 
     75    add_string( "http-user-agent", COPYRIGHT_MESSAGE , NULL, AGENT_TEXT, 
     76                AGENT_LONGTEXT, VLC_FALSE ); 
     77 
    6278    add_shortcut( "http" ); 
    6379    add_shortcut( "http4" ); 
     
    213229    } 
    214230 
    215     msg_Dbg( p_input, "http: server='%s' port=%d file='%s", p_sys->url.psz_host, p_sys->url.i_port, p_sys->url.psz_path ); 
     231    msg_Dbg( p_input, "http: server='%s' port=%d file='%s", 
     232             p_sys->url.psz_host, p_sys->url.i_port, p_sys->url.psz_path ); 
    216233    if( p_sys->b_proxy ) 
    217234    { 
    218         msg_Dbg( p_input, "      proxy %s:%d", p_sys->proxy.psz_host, p_sys->proxy.i_port ); 
     235        msg_Dbg( p_input, "      proxy %s:%d", p_sys->proxy.psz_host, 
     236                 p_sys->proxy.i_port ); 
    219237    } 
    220238    if( p_sys->psz_user && *p_sys->psz_user ) 
    221239    { 
    222         msg_Dbg( p_input, "      user='%s', pwd='%s'", p_sys->psz_user, p_sys->psz_passwd ); 
     240        msg_Dbg( p_input, "      user='%s', pwd='%s'", 
     241                 p_sys->psz_user, p_sys->psz_passwd ); 
    223242    } 
    224243 
    225244    /* Connect */ 
    226     if( Connect( p_input, &p_input->stream.b_seekable, &p_input->stream.p_selected_area->i_size, 0 ) ) 
     245    if( Connect( p_input, &p_input->stream.b_seekable, 
     246                 &p_input->stream.p_selected_area->i_size, 0 ) ) 
    227247    { 
    228248        /* Retry with http 1.0 */ 
     
    230250 
    231251        if( p_input->b_die || 
    232             Connect( p_input, &p_input->stream.b_seekable, &p_input->stream.p_selected_area->i_size, 0 ) ) 
     252            Connect( p_input, &p_input->stream.b_seekable, 
     253                     &p_input->stream.p_selected_area->i_size, 0 ) ) 
    233254        { 
    234255            goto error; 
     
    282303            p_input->psz_demux = strdup( "mp3" ); 
    283304        } 
    284         msg_Info( p_input, "ICY server found, %s demuxer selected", p_input->psz_demux ); 
     305        msg_Info( p_input, "ICY server found, %s demuxer selected", 
     306                  p_input->psz_demux ); 
    285307    } 
    286308 
     
    346368    net_Close( p_sys->fd ); p_sys->fd = -1; 
    347369 
    348     if( Connect( p_input, &p_input->stream.b_seekable, &p_input->stream.p_selected_area->i_size, i_pos ) ) 
     370    if( Connect( p_input, &p_input->stream.b_seekable, 
     371                 &p_input->stream.p_selected_area->i_size, i_pos ) ) 
    349372    { 
    350373        msg_Err( p_input, "seek failed" ); 
     
    436459 * Connect: 
    437460 *****************************************************************************/ 
    438 static int Connect( input_thread_t *p_input, vlc_bool_t *pb_seekable, off_t *pi_size, off_t i_tell ) 
     461static int Connect( input_thread_t *p_input, vlc_bool_t *pb_seekable, 
     462                    off_t *pi_size, off_t i_tell ) 
    439463{ 
    440464    access_sys_t   *p_sys   = p_input->p_access_data; 
     
    464488        net_Printf( VLC_OBJECT(p_input), p_sys->fd, 
    465489                    "GET http://%s:%d/%s HTTP/1.%d\r\n", 
    466                     p_sys->url.psz_host, p_sys->url.i_port, p_sys->url.psz_path, 
    467                     p_sys->i_version ); 
     490                    p_sys->url.psz_host, p_sys->url.i_port, 
     491                    p_sys->url.psz_path, p_sys->i_version ); 
    468492    } 
    469493    else 
     
    475499        } 
    476500        net_Printf( VLC_OBJECT(p_input), p_sys->fd, 
    477                     "GET %s HTTP/1.%d\r\n" 
    478                     "Host: %s\r\n", 
     501                    "GET %s HTTP/1.%d\r\nHost: %s\r\n", 
    479502                    psz_path, p_sys->i_version, p_sys->url.psz_host ); 
    480503    } 
    481504    /* User Agent */ 
    482     net_Printf( VLC_OBJECT(p_input), p_sys->fd, "User-Agent: %s\r\n", p_sys->psz_user_agent ); 
     505    net_Printf( VLC_OBJECT(p_input), p_sys->fd, "User-Agent: %s\r\n", 
     506                p_sys->psz_user_agent ); 
    483507    /* Offset */ 
    484508    if( p_sys->i_version == 1 ) 
     
    498522        b64 = b64_encode( buf ); 
    499523 
    500         net_Printf( VLC_OBJECT(p_input), p_sys->fd, "Authorization: Basic %s", b64 ); 
     524        net_Printf( VLC_OBJECT(p_input), p_sys->fd, 
     525                    "Authorization: Basic %s", b64 ); 
    501526        free( b64 ); 
    502527    } 
     
    505530    if( net_Printf( VLC_OBJECT(p_input), p_sys->fd, "\r\n" ) < 0 ) 
    506531    { 
    507         msg_Err( p_input, "Failed to send request\n" ); 
     532        msg_Err( p_input, "failed to send request" ); 
    508533        net_Close( p_sys->fd ); p_sys->fd = -1; 
    509534        return VLC_EGENERIC; 
     
    517542    if( ( psz = net_Gets( VLC_OBJECT(p_input), p_sys->fd ) ) == NULL ) 
    518543    { 
    519         msg_Err( p_input, "Failed to read answer\n" ); 
     544        msg_Err( p_input, "failed to read answer" ); 
    520545        goto error; 
    521546    } 
     
    536561        goto error; 
    537562    } 
    538     msg_Dbg( p_input, "Protocol '%s' answer code %d", p_sys->psz_protocol, p_sys->i_code ); 
     563    msg_Dbg( p_input, "protocol '%s' answer code %d", 
     564             p_sys->psz_protocol, p_sys->i_code ); 
    539565    if( !strcmp( p_sys->psz_protocol, "ICY" ) ) 
    540566    { 
     
    560586        if( psz == NULL ) 
    561587        { 
    562             msg_Err( p_input, "Failed to read answer\n" ); 
     588            msg_Err( p_input, "failed to read answer" ); 
    563589            goto error; 
    564590        } 
  • modules/access/mms/mms.c

    r5deafc1 r630d42d  
    22 * mms.c: MMS over tcp, udp and http access plug-in 
    33 ***************************************************************************** 
    4  * Copyright (C) 2001, 2002 VideoLAN 
    5  * $Id: mms.c,v 1.35 2004/01/21 16:56:16 fenrir Exp $ 
     4 * Copyright (C) 2002-2004 VideoLAN 
     5 * $Id: mms.c,v 1.36 2004/01/25 17:31:22 gbazin Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    6060    "value should be set in miliseconds units." ) 
    6161 
     62#define ALL_TEXT N_("Force selection of all streams") 
     63 
     64#define BITRATE_TEXT N_("Selct maximum bitrate stream") 
     65#define BITRATE_LONGTEXT N_( \ 
     66    "Always select the stream with the maximum bitrate." ) 
     67 
    6268vlc_module_begin(); 
    6369    set_description( _("Microsoft Media Server (MMS) input") ); 
    6470    set_capability( "access", 0 ); 
    65     add_category_hint( "stream", NULL, VLC_TRUE ); 
    66         add_integer( "mms-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL, 
    67                      CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 
    68  
    69         add_bool( "mms-all", 0, NULL, 
    70                   "force selection of all streams", 
    71                   "force selection of all streams", VLC_TRUE ); 
    72         add_integer( "mms-maxbitrate", 0, NULL, 
    73                      "max bitrate", 
    74                      "set max bitrate for auto streams selections", VLC_FALSE ); 
     71 
     72    add_integer( "mms-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL, 
     73                 CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 
     74 
     75    add_bool( "mms-all", 0, NULL, ALL_TEXT, "", VLC_TRUE ); 
     76    add_integer( "mms-maxbitrate", 0, NULL, BITRATE_TEXT, BITRATE_LONGTEXT , 
     77                 VLC_FALSE ); 
     78 
    7579    add_shortcut( "mms" ); 
    7680    add_shortcut( "mmsu" ); 
     
    8084vlc_module_end(); 
    8185 
    82  
     86/***************************************************************************** 
     87 * Open: 
     88 *****************************************************************************/ 
    8389static int Open( vlc_object_t *p_this ) 
    8490{ 
  • modules/access/pvr/pvr.c

    r5a6c9e6 r630d42d  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001, 2002 VideoLAN 
    5  * $Id: pvr.c,v 1.10 2003/11/23 18:31:54 alexis Exp $ 
     5 * $Id: pvr.c,v 1.11 2004/01/25 17:31:22 gbazin Exp $ 
    66 * 
    77 * Authors: Eric Petit <titer@videolan.org> 
     
    7575 *****************************************************************************/ 
    7676vlc_module_begin(); 
    77     set_description( _("input for encoding cards supported by the ivtv drivers") ); 
     77    set_description( _("MPEG Encoding cards input (with ivtv drivers)") ); 
    7878    set_capability( "access", 0 ); 
    7979    add_shortcut( "pvr" ); 
  • modules/access/satellite/satellite.c

    r5a6c9e6 r630d42d  
    7070 
    7171vlc_module_begin(); 
    72     add_category_hint( N_("Input"), NULL, VLC_FALSE ); 
    73         add_integer( "dvb-dmx", 0, NULL, DEMUX_TEXT, DEMUX_LONGTEXT, 
    74                      VLC_FALSE ); 
    75         add_integer( "dvb-tuner", 0, NULL, TUNER_TEXT, TUNER_LONGTEXT, 
    76                      VLC_FALSE ); 
    77         add_integer( "frequency", 0, NULL, FREQ_TEXT, FREQ_LONGTEXT, 
    78                      VLC_FALSE ); 
    79         add_integer( "polarization", 0, NULL, POL_TEXT, POL_LONGTEXT, 
    80                      VLC_FALSE ); 
    81         add_integer( "fec", 3, NULL, FEC_TEXT, FEC_LONGTEXT, VLC_FALSE ); 
    82         add_integer( "symbol-rate", 27500000, NULL, SRATE_TEXT, SRATE_LONGTEXT, 
    83                      VLC_FALSE ); 
    84         add_bool( "diseqc", 0, NULL, DISEQC_TEXT, DISEQC_LONGTEXT, VLC_FALSE ); 
    85         add_integer( "lnb-lof1", 10000000, NULL, 
    86                      LNB_LOF1_TEXT, LNB_LOF1_LONGTEXT, VLC_FALSE ); 
    87         add_integer( "lnb-lof2", 10000000, NULL, 
    88                      LNB_LOF2_TEXT, LNB_LOF2_LONGTEXT, VLC_FALSE ); 
    89         add_integer( "lnb-slof", 11700000, NULL, 
    90                      LNB_SLOF_TEXT, LNB_SLOF_LONGTEXT, VLC_FALSE ); 
    91     set_description( _("satellite input") ); 
     72    set_description( _("Satellite input") ); 
     73 
     74    add_integer( "dvb-dmx", 0, NULL, DEMUX_TEXT, DEMUX_LONGTEXT, VLC_FALSE ); 
     75    add_integer( "dvb-tuner", 0, NULL, TUNER_TEXT, TUNER_LONGTEXT, VLC_FALSE ); 
     76    add_integer( "frequency", 0, NULL, FREQ_TEXT, FREQ_LONGTEXT, VLC_FALSE ); 
     77    add_integer( "polarization", 0, NULL, POL_TEXT, POL_LONGTEXT, VLC_FALSE ); 
     78    add_integer( "fec", 3, NULL, FEC_TEXT, FEC_LONGTEXT, VLC_FALSE ); 
     79    add_integer( "symbol-rate", 27500000, NULL, SRATE_TEXT, SRATE_LONGTEXT, 
     80                  VLC_FALSE ); 
     81    add_bool( "diseqc", 0, NULL, DISEQC_TEXT, DISEQC_LONGTEXT, VLC_TRUE ); 
     82    add_integer( "lnb-lof1", 10000000, NULL, 
     83                 LNB_LOF1_TEXT, LNB_LOF1_LONGTEXT, VLC_TRUE ); 
     84    add_integer( "lnb-lof2", 10000000, NULL, 
     85                 LNB_LOF2_TEXT, LNB_LOF2_LONGTEXT, VLC_TRUE ); 
     86    add_integer( "lnb-slof", 11700000, NULL, 
     87                 LNB_SLOF_TEXT, LNB_SLOF_LONGTEXT, VLC_TRUE ); 
     88 
    9289    set_capability( "access", 0 ); 
    9390    add_shortcut( "sat" ); 
  • modules/access/slp.c

    rf083827 r630d42d  
    22 * slp.c: SLP access plugin 
    33 ***************************************************************************** 
    4  * Copyright (C) 2001, 2002 VideoLAN 
    5  * $Id: slp.c,v 1.19 2004/01/17 12:28:56 gbazin Exp $ 
     4 * Copyright (C) 2002-2004 VideoLAN 
     5 * $Id: slp.c,v 1.20 2004/01/25 17:31:22 gbazin Exp $ 
    66 * 
    77 * Authors: Lo�Minier <lool@videolan.org> 
     
    3939static int  Open  ( vlc_object_t * ); 
    4040static void Close ( vlc_object_t * ); 
    41 static ssize_t Read  ( input_thread_t *, byte_t *, size_t ); 
     41static ssize_t Read( input_thread_t *, byte_t *, size_t ); 
    4242 
    4343static int  Init  ( vlc_object_t * ); 
     
    5151 *****************************************************************************/ 
    5252 
    53 #define SRVTYPE_TEXT     "SLP service type" 
    54 #define SRVTYPE_LONGTEXT "The service type string for SLP queries, " \ 
    55                          "including the authority string (if any) for the " \ 
    56                          "request. May not be empty" 
    57 #define ATTRIDS_TEXT     "SLP attribute identifiers" 
    58 #define ATTRIDS_LONGTEXT "This string is a comma separated list of " \ 
    59                          "attribute identifiers to search for a playlist "\ 
    60                          "title or empty to use all attributes" 
    61 #define SCOPELIST_TEXT     "SLP scopes list" 
    62 #define SCOPELIST_LONGTEXT "This string is a comma separated list of scope " \ 
    63                            "names or empty if you want to use the default "  \ 
    64                            "scopes; it is used in all SLP queries" 
    65 #define NAMINGAUTHORITY_TEXT     "SLP naming authority" 
    66 #define NAMINGAUTHORITY_LONGTEXT "This string is a list of naming " \ 
    67                                  "authorities to search. Use \"*\" for all " \ 
    68                                  "and the empty string for the default of " \ 
    69                                  "IANA" 
    70 #define FILTER_TEXT     "SLP LDAP filter" 
    71 #define FILTER_LONGTEXT "This is a query formulated of attribute pattern " \ 
    72                         "matching expressions in the form of an LDAPv3 "   \ 
    73                         "search filter or empty for all answers" 
    74 #define LANG_TEXT     "Language requested in SLP requests" 
    75 #define LANG_LONGTEXT "RFC 1766 Language Tag for the natural language " \ 
    76                       "locale of requests, leave empty to use the "     \ 
    77                       "default locale; it is used in all SLP queries" 
     53#if 0 
     54#define SRVTYPE_TEXT /*N_*/("SLP service type") 
     55#define SRVTYPE_LONGTEXT /*N_*/( \ 
     56    "The service type string for SLP queries, including the authority " \ 
     57    "string (if any) for the request. May not be empty." ) 
     58#endif 
     59 
     60#define ATTRIDS_TEXT N_("SLP attribute identifiers") 
     61#define ATTRIDS_LONGTEXT N_( \ 
     62    "This string is a comma separated list of attribute identifiers to " \ 
     63    "search for a playlist title or empty to use all attributes." ) 
     64 
     65#define SCOPELIST_TEXT N_("SLP scopes list") 
     66#define SCOPELIST_LONGTEXT N_( \ 
     67    "This string is a comma separated list of scope names or empty if you " \ 
     68    "want to use the default scopes. It is used in all SLP queries." ) 
     69 
     70#define NAMINGAUTHORITY_TEXT N_("SLP naming authority") 
     71#define NAMINGAUTHORITY_LONGTEXT N_( \ 
     72    "This string is a list of naming authorities to search. " \ 
     73    "Use \"*\" for all and the empty string for the default of IANA." ) 
     74 
     75#define FILTER_TEXT N_("SLP LDAP filter") 
     76#define FILTER_LONGTEXT N_( \ 
     77    "This is a query formulated of attribute pattern matching expressions " \ 
     78    "in the form of an LDAPv3 search filter or empty for all answers." ) 
     79 
     80#define LANG_TEXT N_("Language requested in SLP requests") 
     81#define LANG_LONGTEXT N_( \ 
     82    "RFC 1766 Language tag for the natural language locale of requests, " \ 
     83    "leave empty to use the default locale. It is used in all SLP queries." ) 
    7884 
    7985vlc_module_begin(); 
    8086    set_description( _("SLP input") ); 
    81     add_category_hint( N_("slp"), NULL, VLC_TRUE ); 
    82     add_string( "slp-attrids", "", NULL, ATTRIDS_TEXT, ATTRIDS_LONGTEXT, VLC_TRUE ); 
     87 
     88    add_string( "slp-attrids", "", NULL, ATTRIDS_TEXT, ATTRIDS_LONGTEXT, 
     89                VLC_TRUE ); 
    8390    add_string( "slp-scopelist", "", NULL, SCOPELIST_TEXT, 
    8491                SCOPELIST_LONGTEXT, VLC_TRUE ); 
    8592    add_string( "slp-namingauthority", "*", NULL, NAMINGAUTHORITY_TEXT, 
    8693                NAMINGAUTHORITY_LONGTEXT, VLC_TRUE ); 
    87     add_string( "slp-filter", "", NULL, FILTER_TEXT, FILTER_LONGTEXT, VLC_TRUE ); 
     94    add_string( "slp-filter", "", NULL, FILTER_TEXT, FILTER_LONGTEXT, 
     95                VLC_TRUE ); 
    8896    add_string( "slp-lang", "", NULL, LANG_TEXT, LANG_LONGTEXT, VLC_TRUE ); 
     97 
    8998    set_capability( "access", 0 ); 
    9099    set_callbacks( Open, Close ); 
     
    156165    if( (slpe_errcode != SLP_OK) ) 
    157166    { 
    158         msg_Err( p_input, 
    159                  "SrvUrlCallback got an error %i with URL %s", 
    160                  slpe_errcode, 
    161                  psz_srvurl ); 
     167        msg_Err( p_input, "SrvUrlCallback got an error %i with URL %s", 
     168                 slpe_errcode, psz_srvurl ); 
    162169        return SLP_TRUE; 
    163170    } 
     
    235242 
    236243    msg_Info( (input_thread_t *)p_input, 
    237              "added � %s � (lifetime %i) to playlist", 
    238              psz_srvurl, 
    239              i_lifetime ); 
     244              "added � %s � (lifetime %i) to playlist", 
     245               psz_srvurl, i_lifetime ); 
    240246 
    241247    return SLP_TRUE; 
     
    256262    char *psz_service; 
    257263 
    258     msg_Dbg(p_input,"Services: %s",psz_srvurl); 
     264    msg_Dbg( p_input, "services: %s", psz_srvurl ); 
    259265    /* our callback was only called to tell us there's nothing more to read */ 
    260266    if( slpe_errcode == SLP_LAST_CALL ) 
     
    263269    } 
    264270 
    265     msg_Dbg(p_input,"Services: %s",psz_srvurl); 
     271    msg_Dbg( p_input, "services: %s", psz_srvurl ); 
    266272 
    267273    /* or there was a problem with getting the data we requested */ 
    268274    if( slpe_errcode != SLP_OK ) 
    269275    { 
    270         msg_Err( p_input, 
    271                  "SrvTypeCallback got an error %i with URL %s", 
    272                  slpe_errcode, 
    273                  psz_srvurl ); 
     276        msg_Err( p_input, "SrvTypeCallback got an error %i with URL %s", 
     277                 slpe_errcode, psz_srvurl ); 
    274278        return SLP_TRUE; 
    275279    } 
     
    299303                psz_service = strdup( psz_srvurl); 
    300304 
    301                 msg_Dbg(p_input,"Getting details for %s",psz_service); 
     305                msg_Dbg( p_input, "getting details for %s", psz_service ); 
    302306 
    303307                slpe_result = SLPFindSrvs( slph_slp2, 
     
    318322                   msg_Err( p_input, 
    319323                           "SLPFindSrvs error %i finding servers of type %s", 
    320                            slpe_result, 
    321                            psz_service ); 
     324                           slpe_result, psz_service ); 
    322325                } 
    323326            } 
     
    444447    return; 
    445448} 
    446  
  • modules/access/tcp.c

    rff475a9 r630d42d  
    11/***************************************************************************** 
    2  * tcp.c: TCP access plug-in 
     2 * tcp.c: TCP input module 
    33 ***************************************************************************** 
    4  * Copyright (C) 2003 VideoLAN 
    5  * $Id: tcp.c,v 1.3 2004/01/05 15:07:16 fenrir Exp $ 
     4 * Copyright (C) 2003-2004 VideoLAN 
     5 * $Id: tcp.c,v 1.4 2004/01/25 17:31:22 gbazin Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    3535 * Module descriptor 
    3636 *****************************************************************************/ 
    37 #define CACHING_TEXT N_("caching value in ms") 
     37#define CACHING_TEXT N_("Caching value in ms") 
    3838#define CACHING_LONGTEXT N_( \ 
    3939    "Allows you to modify the default caching value for udp streams. This " \