libdvbv5 1.26.1
Library to work with Digital TV devices on Linux
atsc_header.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
20#ifndef _ATSC_HEADER_H
21#define _ATSC_HEADER_H
22
34#include <stdint.h>
35#include <unistd.h> /* ssize_t */
36
37#include <libdvbv5/header.h>
38
44#define ATSC_BASE_PID 0x1FFB
45
46#ifndef _DOXYGEN
47
48/* Deprecated, as it causes troubles with doxygen */
49#define ATSC_HEADER() \
50 struct dvb_table_header header; \
51 uint8_t protocol_version; \
52
53#define ATSC_TABLE_HEADER_PRINT(_parms, _table) \
54 dvb_table_header_print(_parms, &_table->header); \
55 dvb_loginfo("| protocol_version %d", _table->protocol_version); \
56
57#endif /* _DOXYGEN */
58
59#endif /* _ATSC_HEADER_H */
Provides the MPEG TS table headers.