25 lines
601 B
C
25 lines
601 B
C
|
|
||
|
#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 *);
|
||
|
|