libdvbv5  1.6.0
Library to work with Digital TV devices on Linux
desc_ca_identifier.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 - Andre Roth <neolynx@gmail.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  * Described at ETSI EN 300 468 V1.11.1 (2010-04)
20  */
21 
37 #ifndef _CA_IDENTIFIER_H
38 #define _CA_IDENTIFIER_H
39 
40 #include <libdvbv5/descriptors.h>
41 
55  uint8_t type;
56  uint8_t length;
57  struct dvb_desc *next;
58 
59  uint8_t caid_count;
60  uint16_t *caids;
61 
62 } __attribute__((packed));
63 
64 struct dvb_v5_fe_parms;
65 
67 #define dvb_desc_ca_identifier_field_first ca_id
68 
69 #define dvb_desc_ca_identifier_field_last privdata
70 
71 #ifdef __cplusplus
72 extern "C" {
73 #endif
74 
91  const uint8_t *buf, struct dvb_desc *desc);
92 
101  const struct dvb_desc *desc);
102 
109 void dvb_desc_ca_identifier_free(struct dvb_desc *desc);
110 
111 #ifdef __cplusplus
112 }
113 #endif
114 
115 #endif
void dvb_desc_ca_identifier_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Prints the content of the CA identifier descriptor.
struct dvb_desc * next
Indicates if a particular bouquet, service or event is associated with a CA system.
int dvb_desc_ca_identifier_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
Initializes and parses the CA identifier 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
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
void dvb_desc_ca_identifier_free(struct dvb_desc *desc)
Frees all data allocated by the CA identifier descriptor.