libdvbv5  1.6.0
Library to work with Digital TV devices on Linux
desc_extension.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013-2014 - Mauro Carvalho Chehab <m.chehab@samsung.com>
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation version 2
7  * of the License.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
18  *
19  */
20 
40 #ifndef _EXTENSION_DESC_H
41 #define _EXTENSION_DESC_H
42 
43 #include <libdvbv5/descriptors.h>
44 
45 struct dvb_v5_fe_parms;
46 
93  CP_descriptor = 0x02,
103 };
104 
117  uint8_t type;
118  uint8_t length;
119  struct dvb_desc *next;
120 
121  uint8_t extension_code;
122 
124 } __attribute__((packed));
125 
126 
136 typedef int (*dvb_desc_ext_init_func) (struct dvb_v5_fe_parms *parms,
137  const uint8_t *buf,
138  struct dvb_extension_descriptor *ext,
139  void *desc);
149 typedef void (*dvb_desc_ext_print_func)(struct dvb_v5_fe_parms *parms,
150  const struct dvb_extension_descriptor *ext,
151  const void *desc);
158 typedef void (*dvb_desc_ext_free_func) (const void *desc);
159 
173  const char *name;
177  ssize_t size;
178 };
179 
180 
181 #ifdef __cplusplus
182 extern "C" {
183 #endif
184 
201  const uint8_t *buf, struct dvb_desc *desc);
202 
211  const struct dvb_desc *desc);
212 
219 void dvb_extension_descriptor_free(struct dvb_desc *desc);
220 
221 #ifdef __cplusplus
222 }
223 #endif
224 
225 #endif
int(* dvb_desc_ext_init_func)(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_extension_descriptor *ext, void *desc)
Function prototype for the extended descriptors parsing init code.
Content Protection/Copy Management (CPCM) delivery signalling descriptor.
Content Protection descriptor.
void(* dvb_desc_ext_print_func)(struct dvb_v5_fe_parms *parms, const struct dvb_extension_descriptor *ext, const void *desc)
Function prototype for the extended descriptors parsing print code.
Structure containing the extended descriptors.
target region name descriptor
int dvb_extension_descriptor_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
Initializes and parses the extended descriptor.
void dvb_extension_descriptor_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Prints the content of the extended descriptor.
struct dvb_desc * descriptor
dvb_desc_ext_free_func free
Structure that describes the parser functions for the extended descriptors.
dvb_desc_ext_init_func init
void(* dvb_desc_ext_free_func)(const void *desc)
Function prototype for the extended descriptors parsing free code.
DVB-SH delivery system descriptor.
service relocated descriptor
network change notify descriptor
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:118
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:118
image icon descriptor
extension_descriptors
List containing all extended descriptors used by Digital TV MPEG-TS as defined at ETSI EN 300 468 V1...
message descriptor
supplementary audio descriptor
target region descriptor
Content Protection identifier descriptor.
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
dvb_desc_ext_print_func print
struct dvb_desc * next
void dvb_extension_descriptor_free(struct dvb_desc *desc)
Frees all data allocated by the extended descriptor.
DVB-T2 delivery system descriptor.