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