OSDN Git Service

stop using trunk or dist directory in rec10 project.
[rec10/rec10-git.git] / tstools / epgdump / cdt.h
1 #ifndef CDT_H
2 #define CDT_H 1
3
4 #include <stdio.h>
5 #include <stdlib.h>
6
7 #include "sdt.h"
8 #include "util.h"
9 #include "ts_ctl.h"
10
11 typedef struct _CDThead {
12         unsigned char table_id;
13         int  section_syntax_indicator;
14         int  reserved_future_use1;
15         int  reserved1;
16         int  section_length;
17         int  download_data_id;
18         int  reserved2;
19         int  version_number;
20         int  current_next_indicator;
21         int  section_number;
22         int  last_section_number;
23         int  original_network_id;
24         int  reserved_future_use2;
25         int  data_type;
26         int  descriptors_loop_length;
27 } CDThead;
28
29 typedef struct _CDTdesc {
30         unsigned char  descriptor_tag;
31         int  descriptor_length;
32 } CDTdesc;
33
34 typedef struct _CDTdata {
35         int     logo_type;
36         int     reserved_future_use1;
37         int     logo_id;
38         int     reserved_future_use2;
39         int     logo_version;
40         int     data_size;
41         void    *data;
42 } CDTdata;
43
44 #ifdef __cplusplus
45 extern "C"{
46 #endif /* __cplusplus */
47
48         int parseCDThead(unsigned char *data, CDThead *h);
49         int parseCDTdesc(unsigned char *data, CDTdesc *desc);
50         void dumpCDT(unsigned char *ptr, STATION *station, int station_count);
51
52 #ifdef __cplusplus
53 }
54 #endif /* __cplusplus */
55
56 #endif