]> git.sesse.net Git - vlc/blob - plugins/satellite/satellite.c
* ALL: the first libvlc commit.
[vlc] / plugins / satellite / satellite.c
1 /*****************************************************************************
2  * dvb.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  * Capabilities defined in the other files.
33  *****************************************************************************/
34 void _M( access_getfunctions )( function_list_t * p_function_list );
35 void _M( demux_getfunctions )( function_list_t * p_function_list );
36
37 /*****************************************************************************
38  * Build configuration tree.
39  *****************************************************************************/
40
41 #define FREQ_TEXT N_("satellite default transponder frequency")
42 #define FREQ_LONGTEXT ""
43
44 #define POL_TEXT N_("satellite default transponder polarization")
45 #define POL_LONGTEXT ""
46
47 #define FEC_TEXT N_("satellite default transponder FEC")
48 #define FEC_LONGTEXT ""
49
50 #define SRATE_TEXT N_("satellite default transponder symbol rate")
51 #define SRATE_LONGTEXT ""
52
53 #define DISEQC_TEXT N_("use diseqc with antenna")
54 #define DISEQC_LONGTEXT ""
55
56 #define LNB_LOF1_TEXT N_("antenna lnb_lof1 (kHz)")
57 #define LNB_LOF1_LONGTEXT ""
58
59 #define LNB_LOF2_TEXT N_("antenna lnb_lof2 (kHz)")
60 #define LNB_LOF2_LONGTEXT ""
61
62 #define LNB_SLOF_TEXT N_("antenna lnb_slof (kHz)")
63 #define LNB_SLOF_LONGTEXT ""
64
65 MODULE_CONFIG_START
66     ADD_CATEGORY_HINT( N_("Input"), NULL )
67     ADD_INTEGER ( "frequency", 11954, NULL, FREQ_TEXT, FREQ_LONGTEXT )
68     ADD_INTEGER ( "polarization", 0, NULL, POL_TEXT, POL_LONGTEXT )
69     ADD_INTEGER ( "fec", 3, NULL, FEC_TEXT, FEC_LONGTEXT )
70     ADD_INTEGER ( "symbol-rate", 27500, NULL, SRATE_TEXT, SRATE_LONGTEXT )
71     ADD_BOOL    ( "diseqc", 0, NULL, DISEQC_TEXT, DISEQC_LONGTEXT )
72     ADD_INTEGER ( "lnb-lof1", 10000, NULL, LNB_LOF1_TEXT, LNB_LOF1_LONGTEXT )
73     ADD_INTEGER ( "lnb-lof2", 10000, NULL, LNB_LOF2_TEXT, LNB_LOF2_LONGTEXT )
74     ADD_INTEGER ( "lnb-slof", 11700, NULL, LNB_SLOF_TEXT, LNB_SLOF_LONGTEXT )
75 MODULE_CONFIG_STOP
76
77 MODULE_INIT_START
78     SET_DESCRIPTION( _("satellite input module") )
79     ADD_CAPABILITY( ACCESS, 0 )
80     ADD_SHORTCUT( "sat" )
81 MODULE_INIT_STOP
82
83 MODULE_ACTIVATE_START
84     _M( access_getfunctions )( &p_module->p_functions->access );
85 MODULE_ACTIVATE_STOP
86
87 MODULE_DEACTIVATE_START
88 MODULE_DEACTIVATE_STOP
89