57 lines
838 B
C
57 lines
838 B
C
/*
|
|
* Humax EPG Tool
|
|
* by af123, 2011
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <errno.h>
|
|
#include <ctype.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
#include <sys/time.h>
|
|
#include <sys/stat.h>
|
|
#include <time.h>
|
|
#include "lint.h"
|
|
|
|
int debug = 0;
|
|
const char *version = "0.0.1";
|
|
unsigned long sysopts = 0;
|
|
|
|
int
|
|
syntax()
|
|
{
|
|
fprintf(stderr, "Humax EPG Tool v%s, by af123, 2011.\n\n", version);
|
|
fprintf(stderr,
|
|
"Syntax: epg ...\n");
|
|
fprintf(stderr,
|
|
" Commands:\n"
|
|
);
|
|
fprintf(stderr, "\n");
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
main(int argc, char **argv)
|
|
{
|
|
struct section_header *h;
|
|
struct data *d;
|
|
struct epg *epg;
|
|
|
|
if (!(epg = open_file("epg.dat")))
|
|
return 0;
|
|
|
|
h = read_section_header(epg);
|
|
dump_section_header(h);
|
|
|
|
d = read_data(epg);
|
|
dump_data(d);
|
|
|
|
close_file(epg);
|
|
|
|
return 0;
|
|
}
|
|
|