libdvbv5  1.11.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 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 
42 #include <libdvbv5/descriptors.h>
43 
44 struct dvb_v5_fe_parms;
45 
92  CP_descriptor = 0x02,
102 };
103 
116  uint8_t type;
117  uint8_t length;
118  struct dvb_desc *next;
119 
120  uint8_t extension_code;
121 
123 } __attribute__((packed));
124 
125 
135 typedef 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);
148 typedef void (*dvb_desc_ext_print_func)(struct dvb_v5_fe_parms *parms,
149  const struct dvb_extension_descriptor *ext,
150  const void *desc);
157 typedef void (*dvb_desc_ext_free_func) (const void *desc);
158 
172  const char *name;
176  ssize_t size;
177 };
178 
179 
180 #ifdef __cplusplus
181 extern "C" {
182 #endif
183 
200  const uint8_t *buf, struct dvb_desc *desc);
201 
210  const struct dvb_desc *desc);
211 
218 void dvb_extension_descriptor_free(struct dvb_desc *desc);
219 
220 #ifdef __cplusplus
221 }
222 #endif
223 
224 #endif
Content Protection/Copy Management (CPCM) delivery signalling descriptor.
Content Protection descriptor.
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
DVB-SH delivery system descriptor.
service relocated descriptor
network change notify descriptor
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:117
void(* dvb_desc_ext_free_func)(const void *desc)
Function prototype for the extended descriptors parsing free code.
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.
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:117
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.
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.
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.