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