1 /*
2  * Simple MPEG/DVB parser to achieve network/service information without initial tuning data
3  *
4  * Copyright (C) 2006, 2007, 2008, 2009 Winfried Koehler
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20  */
21 
22 #ifndef __HEADER_DVBSCAN_H__
23 #define __HEADER_DVBSCAN_H__
24 
25 #include "extended_frontend.h"
26 
27 typedef struct init_item {
28 	const char *name;
29 	int id;
30 } _init_item;
31 
32 /********************************************************************
33  * DVB-T
34  *
35  ********************************************************************/
36 
37 /* convert text to identifiers */
38 int txt_to_terr_bw(const char *txt);
39 int txt_to_terr_fec(const char *txt);
40 int txt_to_terr_mod(const char *txt);
41 int txt_to_terr_transmission(const char *txt);
42 int txt_to_terr_guard(const char *txt);
43 int txt_to_terr_hierarchy(const char *txt);
44 
45 /*convert identifier to text */
46 const char *terr_bw_to_txt(int id);
47 const char *terr_fec_to_txt(int id);
48 const char *terr_mod_to_txt(int id);
49 const char *terr_mod_to_txt_v5(int id);
50 const char *terr_transmission_to_txt(int id);
51 const char *terr_guard_to_txt(int id);
52 const char *terr_hierarchy_to_txt(int id);
53 
54 /********************************************************************
55  * DVB-C
56  *
57  ********************************************************************/
58 
59 /* convert text to identifiers */
60 int txt_to_cable_fec(const char *txt);
61 int txt_to_cable_mod(const char *txt);
62 
63 /*convert identifier to text */
64 const char *cable_fec_to_txt(int id);
65 const char *cable_mod_to_txt(int id);
66 const char *cable_mod_to_txt_v5(int id);
67 
68 /********************************************************************
69  * ATSC
70  *
71  ********************************************************************/
72 
73 /* convert text to identifiers */
74 int txt_to_atsc_mod(const char *txt);
75 
76 /*convert identifier to text */
77 const char *atsc_mod_to_txt(int id);
78 const char *atsc_mod_to_txt_v5(int id);
79 
80 /********************************************************************
81  * DVB-S
82  *
83  ********************************************************************/
84 
85 /* convert text to identifiers */
86 int txt_to_sat_delivery_system(const char *txt);
87 int txt_to_sat_pol(const char *txt);
88 int txt_to_sat_fec(const char *txt);
89 int txt_to_sat_rolloff(const char *txt);
90 int txt_to_sat_mod(const char *txt);
91 
92 /*convert identifier to text */
93 const char *sat_delivery_system_to_txt(int id);
94 const char *sat_pol_to_txt(int id);
95 const char *sat_pol_to_txt_v5(int id);
96 const char *sat_fec_to_txt(int id);
97 const char *sat_rolloff_to_txt(int id);
98 const char *sat_mod_to_txt(int id);
99 const char *sat_mod_to_txt_v5(int id);
100 
101 /********************************************************************
102  * non-frontend specific part
103  *
104  ********************************************************************/
105 
106 /* convert text to identifiers */
107 int txt_to_scantype(const char *txt);
108 
109 /*convert identifier to text */
110 const char *scantype_to_txt(int id);
111 
112 #endif
113