2011-06-01 23:34:35 +00:00
|
|
|
|
|
|
|
#include "epg.h"
|
|
|
|
|
|
|
|
/* Works for modern dates, 1970 - 2038 */
|
|
|
|
#define MJD_TO_UNIX(xx) (((xx) - 40587) * 86400)
|
|
|
|
|
|
|
|
extern int debug;
|
|
|
|
extern const char *version;
|
|
|
|
extern unsigned long sysopts;
|
|
|
|
|
|
|
|
inline uint16_t read_uint16(uint8_t *, int);
|
|
|
|
inline uint32_t read_uint32(uint8_t *, int);
|
|
|
|
void hexdump(uint8_t *, uint32_t, uint32_t);
|
|
|
|
void hexstr(uint8_t *, uint32_t);
|
|
|
|
|
|
|
|
struct epg *open_file(char *);
|
|
|
|
void close_file(struct epg *);
|
|
|
|
|
|
|
|
struct section_header *read_section_header(struct epg *);
|
|
|
|
void dump_section_header(struct section_header *);
|
|
|
|
|
|
|
|
struct data *read_data(struct epg *);
|
|
|
|
void dump_data(struct data *);
|
|
|
|
|
2011-06-02 01:32:55 +00:00
|
|
|
struct descriptor_header *read_descriptor_header(struct epg *);
|
|
|
|
void dump_descriptor_header(struct descriptor_header *);
|
|
|
|
|