]> git.sesse.net Git - vlc/blob - modules/access/satellite/satellite.c
- Updated French translation (still a lot of work to do...)
[vlc] / modules / access / satellite / satellite.c
1 /*****************************************************************************
2  * satellite.c : Satellite input module for vlc
3  *****************************************************************************
4  * Copyright (C) 2000 VideoLAN
5  *
6  * Authors: Samuel Hocevar <sam@zoy.org>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
21  *****************************************************************************/
22
23 /*****************************************************************************
24  * Preamble
25  *****************************************************************************/
26 #include <stdlib.h>                                      /* malloc(), free() */
27 #include <string.h>                                              /* strdup() */
28
29 #include <vlc/vlc.h>
30
31 /*****************************************************************************
32  * External prototypes
33  *****************************************************************************/
34 int  E_(Open)    ( vlc_object_t * );
35 void E_(Close)   ( vlc_object_t * );
36
37 /*****************************************************************************
38  * Module descriptor
39  *****************************************************************************/
40
41 #define DEMUX_TEXT N_("Demux number")
42 #define DEMUX_LONGTEXT ""
43
44 #define TUNER_TEXT N_("Tuner number")
45 #define TUNER_LONGTEXT ""
46
47 #define FREQ_TEXT N_("Satellite default transponder frequency (kHz)")
48 #define FREQ_LONGTEXT ""
49
50 #define POL_TEXT N_("Satellite default transponder polarization")
51 #define POL_LONGTEXT ""
52
53 #define FEC_TEXT N_("Satellite default transponder FEC")
54 #define FEC_LONGTEXT ""
55
56 #define SRATE_TEXT N_("Satellite default transponder symbol rate (kHz)")
57 #define SRATE_LONGTEXT ""
58
59 #define DISEQC_TEXT N_("Use diseqc with antenna")
60 #define DISEQC_LONGTEXT ""
61
62 #define LNB_LOF1_TEXT N_("Antenna lnb_lof1 (kHz)")
63 #define LNB_LOF1_LONGTEXT ""
64
65 #define LNB_LOF2_TEXT N_("Antenna lnb_lof2 (kHz)")
66 #define LNB_LOF2_LONGTEXT ""
67
68 #define LNB_SLOF_TEXT N_("Antenna lnb_slof (kHz)")
69 #define LNB_SLOF_LONGTEXT ""
70
71 vlc_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") );
92     set_capability( "access", 0 );
93     add_shortcut( "sat" );
94     set_callbacks( E_(Open), E_(Close) );
95 vlc_module_end();
96