libdvbv5 1.26.1
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 <mchehab@kernel.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation version 2.1 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
17 *
18 */
19
39#ifndef _EXTENSION_DESC_H
40#define _EXTENSION_DESC_H
41
43
44struct dvb_v5_fe_parms;
45
102};
103
116 uint8_t type;
117 uint8_t length;
118 struct dvb_desc *next;
119
121
123} __attribute__((packed));
124
125
135typedef int (*dvb_desc_ext_init_func) (struct dvb_v5_fe_parms *parms,
136 const uint8_t *buf,
137 struct dvb_extension_descriptor *ext,
138 void *desc);
147typedef void (*dvb_desc_ext_print_func)(struct dvb_v5_fe_parms *parms,
148 const struct dvb_extension_descriptor *ext,
149 const void *desc);
156typedef void (*dvb_desc_ext_free_func) (const void *desc);
157
171 const char *name;
175 ssize_t size;
176};
177
178
179#ifdef __cplusplus
180extern "C" {
181#endif
182
199 const uint8_t *buf, struct dvb_desc *desc);
200
209 const struct dvb_desc *desc);
210
218
219#ifdef __cplusplus
220}
221#endif
222
223#endif
extension_descriptors
@ service_relocated_descriptor
service relocated descriptor
@ supplementary_audio_descriptor
supplementary audio descriptor
@ CP_identifier_descriptor
Content Protection identifier descriptor.
@ cpcm_delivery_signalling_descriptor
Content Protection/Copy Management (CPCM) delivery signalling descriptor.
@ CP_descriptor
Content Protection descriptor.
@ SH_delivery_system_descriptor
DVB-SH delivery system descriptor.
@ image_icon_descriptor
image icon descriptor
@ network_change_notify_descriptor
network change notify descriptor
@ T2_delivery_system_descriptor
DVB-T2 delivery system descriptor.
@ target_region_descriptor
target region descriptor
@ message_descriptor
message descriptor
@ target_region_name_descriptor
target region name descriptor
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
void dvb_extension_descriptor_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Prints the content of the extended 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_free(struct dvb_desc *desc)
Frees all data allocated by the extended 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.
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.
void(* dvb_desc_ext_free_func)(const void *desc)
Function prototype for the extended descriptors parsing free code.
Linked list containing the several descriptors found on a MPEG-TS table.
Structure that describes the parser functions for the extended descriptors.
dvb_desc_ext_free_func free
dvb_desc_ext_init_func init
dvb_desc_ext_print_func print
Structure containing the extended descriptors.
struct dvb_desc * descriptor
Keeps data needed to handle the DVB frontend.
Definition dvb-fe.h:117