libdvbv5  1.6.0
Library to work with Digital TV devices on Linux
cat.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  */
20 
32 #ifndef _CAT_H
33 #define _CAT_H
34 
35 #include <stdint.h>
36 #include <unistd.h> /* ssize_t */
37 
38 #include <libdvbv5/header.h>
39 
48 #define DVB_TABLE_CAT 0x01
49 #define DVB_TABLE_CAT_PID 0x0001
50 
58 struct dvb_table_cat {
61 } __attribute__((packed));
62 
63 struct dvb_v5_fe_parms;
64 
65 #ifdef __cplusplus
66 extern "C" {
67 #endif
68 
84 ssize_t dvb_table_cat_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf,
85  ssize_t buflen, struct dvb_table_cat **table);
86 
92 void dvb_table_cat_free(struct dvb_table_cat *table);
93 
100 void dvb_table_cat_print(struct dvb_v5_fe_parms *parms,
101  struct dvb_table_cat *table);
102 
103 #ifdef __cplusplus
104 }
105 #endif
106 
107 #endif
Header of a MPEG-TS table.
Definition: header.h:93
Provides the MPEG TS table headers.
ssize_t dvb_table_cat_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, ssize_t buflen, struct dvb_table_cat **table)
Initializes and parses CAT table.
struct dvb_desc * descriptor
Definition: cat.h:60
struct dvb_table_header header
Definition: cat.h:59
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:118
void dvb_table_cat_free(struct dvb_table_cat *table)
Frees all data allocated by the CAT table parser.
void dvb_table_cat_print(struct dvb_v5_fe_parms *parms, struct dvb_table_cat *table)
Prints the content of the CAT table.
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:118
ATSC CAT table.
Definition: cat.h:58