-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheadend.h
44 lines (36 loc) · 1.29 KB
/
headend.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
/*
* Copyright (C) 2002 John Todd Larason <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef HEADEND_H
#define HEADEND_H
#include "rtv.h"
extern struct mapping device_mapping[];
extern struct mapping device_bitmapping[];
extern struct mapping service_tier_mapping[];
struct headend_header {
/* 0 */ u32 device_bitmap;
/* 4 */ u8 max_tier[32];
}; /* 36 */
struct headend_channel {
/* 0 */ u32 tmsid;
/* 4 */ u16 tuning;
/* 6 */ u8 device;
/* 7 */ u8 service_tier;
/* 8 */ u8 name[16];
/* 24 */ u8 description[32];
}; /* 56 */
int parse_headend_header(unsigned char ** p, struct headend_header * h);
int parse_headend_channel(unsigned char ** p, struct headend_channel * hc);
void dump_headend_header(struct headend_header * h);
void dump_headend_channel(struct headend_channel * hc);
#endif