2011-06-01 23:34:35 +00:00
|
|
|
|
|
|
|
#include "epg.h"
|
2011-06-02 11:14:43 +00:00
|
|
|
#include "descriptor.h"
|
|
|
|
#include "util.h"
|
2011-06-01 23:34:35 +00:00
|
|
|
|
|
|
|
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);
|
2011-06-02 11:14:43 +00:00
|
|
|
char *hexstr(uint8_t *, uint32_t);
|
|
|
|
char *ctime_nl(time_t *);
|
|
|
|
char *read_string_len(uint8_t *, uint32_t);
|
2011-06-01 23:34:35 +00:00
|
|
|
|
|
|
|
struct epg *open_file(char *);
|
|
|
|
void close_file(struct epg *);
|
|
|
|
|
2011-06-02 11:14:43 +00:00
|
|
|
struct section *read_section(struct epg *);
|
|
|
|
void dump_section(struct section *);
|
2011-06-01 23:34:35 +00:00
|
|
|
|
|
|
|
struct data *read_data(struct epg *);
|
|
|
|
void dump_data(struct data *);
|
|
|
|
|
2011-06-02 11:14:43 +00:00
|
|
|
struct descriptor *read_descriptor_header(struct epg *);
|
|
|
|
void read_descriptor(struct epg *, struct descriptor *);
|
|
|
|
void skip_descriptor(struct epg *, struct descriptor *);
|
|
|
|
void dump_descriptor(struct descriptor *, int);
|
2011-06-02 01:32:55 +00:00
|
|
|
|