OSDN Git Service

commit local dev ver
[rec10/rec10-git.git] / epgdump / tot.h
1 #ifndef TOT_H
2 #define TOT_H 1
3
4 #include <stdio.h>
5 #include <stdlib.h>
6
7 #include "util.h"
8 #include "ts_ctl.h"
9
10 typedef struct _TOThead {
11         unsigned char table_id;
12         int  section_syntax_indicator;
13         int  reserved_future_use1;
14         int  reserved1;
15         int  section_length;
16         unsigned char  JST_time[5];
17         int  reserved2;
18         int  descriptors_loop_length;
19 } TOThead;
20
21 typedef struct _TOTdesc {
22         unsigned char  descriptor_tag;
23         int  descriptor_length;
24 } TOTdesc;
25
26 #ifdef __cplusplus
27 extern "C"{
28 #endif /* __cplusplus */
29
30         int parseTOThead(unsigned char *data, TOThead *toth);
31         int parseTOTdesc(unsigned char *data, TOTdesc *totd);
32         void dumpTOT(unsigned char *ptr);
33
34 #ifdef __cplusplus
35 }
36 #endif /* __cplusplus */
37
38 #endif