forked from nexgenta/tv_grab_dvb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtv_grab_dvb.h
66 lines (51 loc) · 1.41 KB
/
tv_grab_dvb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef __tv_grab_dvd
#define __tv_grab_dvd
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include "dvb/dvb.h"
/* lookup.c */
union lookup_key {
int i;
char c[4];
};
struct lookup_table {
union lookup_key u;
char *desc;
};
extern char *lookup(const struct lookup_table *l, int id);
extern int load_lookup(struct lookup_table **l, const char *file);
/* dvb_info_tables.c */
extern const struct lookup_table description_table[];
extern const struct lookup_table aspect_table[];
extern const struct lookup_table audio_table[];
extern const struct lookup_table crid_type_table[];
/* langidents.c */
extern const struct lookup_table languageid_table[];
/* crc32.c */
extern uint32_t _dvb_crc32(const uint8_t *data, size_t len);
/* dvb_text.c */
extern char *xmlify(const char *s);
extern char *iso6937_encoding;
/* tv_grab_dvb.c */
typedef struct chninfo {
struct chninfo *next;
int sid;
int eid;
int ver;
} chninfo_t;
extern int timeout;
extern int programme_count;
extern int update_count;
extern int time_offset;
extern int invalid_date_count;
extern bool ignore_bad_dates;
extern bool ignore_updates;
extern struct lookup_table *channelid_table;
extern struct chninfo *channels;
char *get_channelident(int chanid);
/* dvb-eit.c */
extern int parseEIT(void *data, size_t len, dvb_callbacks_t *callbacks);
/* dvb-si.c */
extern int parse_dvb_si(void *data, size_t len, dvb_callbacks_t *callbacks);
#endif