trunk 20080912
[gitenigma.git] / include / lib / dvb / lowlevel / tdt.h
blob37e2c70f5e9c124aae0baf8cfda1f918c6c8bab5
1 /*
2 * TIME DESCRIPTION TABLE
4 * Copyright (C) 2000 Ralph Metzler
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef __TDT_H__
23 #define __TDT_H__
25 #include <sys/types.h>
27 #define TDT_LEN 8
29 typedef struct {
30 u_char table_id : 8;
32 #if BYTE_ORDER == BIG_ENDIAN
33 u_char section_syntax_indicator : 1;
34 u_char : 3;
35 u_char section_length_hi : 4;
36 #else
37 u_char section_length_hi : 4;
38 u_char : 3;
39 u_char section_syntax_indicator : 1;
40 #endif
42 u_char section_length_lo : 8;
45 u_char utc_time1 : 8;
46 u_char utc_time2 : 8;
47 u_char utc_time3 : 8;
48 u_char utc_time4 : 8;
49 u_char utc_time5 : 8;
50 } tdt_t;
52 #endif