OSDN Git Service

update epgdump for dist.
[rec10/rec10-git.git] / epgdump / bit.h
1 #ifndef BIT_H
2 #define BIT_H 1
3
4 #include "util.h"
5 #include "ts_ctl.h"
6
7 typedef struct _BIThead {
8         unsigned char table_id;
9         int  section_syntax_indicator;
10         int  reserved_future_use1;
11         int  reserved1;
12         int  section_length;
13         int  original_network_id;
14         int  reserved2;
15         int  version_number;
16         int  current_next_indicator;
17         int  section_number;
18         int  last_section_number;
19         int  reserved_future_use2;
20         int  broadcast_view_propriety;
21         int  first_descriptors_length;
22         // first_descriptors skipped
23 } BIThead;
24
25 typedef struct _BITloop {
26         int  broadcaster_id;
27         int  reserved_future_use;
28         int  broadcaster_descriptors_length;
29 } BITloop;
30
31 typedef struct _BITdesc {
32         int  descriptor_tag;
33         int  descriptor_length;
34         int  parameter_version;
35         int  update_time;
36 } BITdesc;
37
38 typedef struct _BITtable {
39         int  table_id;
40         int  table_description_length;
41         int  table_cycle;
42 } BITtable;
43
44 #ifdef __cplusplus
45 extern "C"{
46 #endif /* __cplusplus */
47
48         int parseBIThead(unsigned char *data, BIThead *head);
49         int parseBITdesc(unsigned char *data, BITdesc *desc);
50         void dumpBIT(unsigned char *ptr);
51
52 #ifdef __cplusplus
53 }
54 #endif /* __cplusplus */
55
56 #endif
57