aboutsummaryrefslogtreecommitdiffstats
path: root/dvb-t/uk-Darvel
blob: 015f9ff2832c11ced4e0ff995f584975d9646f4a (plain)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
generated by cgit v1.2.3 (git 2.39.1) at 2026-05-18 00:39:47 +0000
 


pan>
 * @param d Generic descriptor pointer.
 * @return dvb_bouquet_name_descriptor pointer, or NULL on error.
 */
static inline struct dvb_bouquet_name_descriptor*
	dvb_bouquet_name_descriptor_codec(struct descriptor* d)
{
	return (struct dvb_bouquet_name_descriptor*) d;
}

/**
 * Accessor for the name field of a dvb_bouquet_name_descriptor.
 *
 * @param d dvb_bouquet_name_descriptor pointer.
 * @return Pointer to the field.
 */
static inline uint8_t *
	dvb_bouquet_name_descriptor_name(struct dvb_bouquet_name_descriptor *d)
{
	return (uint8_t *) d + sizeof(struct dvb_bouquet_name_descriptor);
}

/**
 * Determine the length of the name field of a dvb_bouquet_name_descriptor in bytes.
 *
 * @param d dvb_bouquet_name_descriptor pointer.
 * @return Length of the field in bytes.
 */
static inline int
	dvb_bouquet_name_descriptor_name_length(struct dvb_bouquet_name_descriptor *d)
{
	return d->d.len;
}

#ifdef __cplusplus
}
#endif

#endif