libdvbpsi
1.1.0
Main Page
Related Pages
Data Structures
Files
File List
Globals
src
tables
atsc_eit.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2006 Adam Charrett
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Lesser General Public
6
License as published by the Free Software Foundation; either
7
version 2.1 of the License, or (at your option) any later version.
8
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Lesser General Public License for more details.
13
14
You should have received a copy of the GNU Lesser General Public
15
License along with this library; if not, write to the Free Software
16
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
18
eit.h
19
20
*/
21
28
#ifndef _ATSC_EIT_H
29
#define _ATSC_EIT_H
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
35
/*****************************************************************************
36
* dvbpsi_atsc_eit_event_t
37
*****************************************************************************/
48
typedef
struct
dvbpsi_atsc_eit_event_s
49
{
50
uint16_t
i_event_id
;
51
uint32_t
i_start_time
;
52
uint8_t
i_etm_location
;
53
uint32_t
i_length_seconds
;
54
uint8_t
i_title_length
;
55
uint8_t
i_title
[256];
57
dvbpsi_descriptor_t
*
p_first_descriptor
;
59
struct
dvbpsi_atsc_eit_event_s
*
p_next
;
61
}
dvbpsi_atsc_eit_event_t
;
62
63
/*****************************************************************************
64
* dvbpsi_atsc_eit_t
65
*****************************************************************************/
76
typedef
struct
dvbpsi_atsc_eit_s
77
{
78
uint8_t
i_table_id
;
79
uint16_t
i_extension
;
81
uint8_t
i_version
;
82
bool
b_current_next
;
83
uint16_t
i_source_id
;
84
uint8_t
i_protocol
;
86
dvbpsi_atsc_eit_event_t
*
p_first_event
;
88
dvbpsi_descriptor_t
*
p_first_descriptor
;
89
}
dvbpsi_atsc_eit_t
;
90
91
/*****************************************************************************
92
* dvbpsi_eit_callback
93
*****************************************************************************/
99
typedef
void (*
dvbpsi_atsc_eit_callback
)(
void
* p_cb_data,
dvbpsi_atsc_eit_t
* p_new_eit);
100
101
/*****************************************************************************
102
* dvbpsi_atsc_AttachEIT
103
*****************************************************************************/
116
bool
dvbpsi_atsc_AttachEIT
(
dvbpsi_t
*p_dvbpsi, uint8_t
i_table_id
, uint16_t
i_extension
,
117
dvbpsi_atsc_eit_callback
pf_callback,
void
* p_cb_data);
118
119
/*****************************************************************************
120
* dvbpsi_eit_detach
121
*****************************************************************************/
131
void
dvbpsi_atsc_DetachEIT
(
dvbpsi_t
*p_dvbpsi, uint8_t
i_table_id
, uint16_t
i_extension
);
132
133
/*****************************************************************************
134
* dvbpsi_atsc_InitEIT/dvbpsi_atsc_NewEIT
135
*****************************************************************************/
150
void
dvbpsi_atsc_InitEIT
(
dvbpsi_atsc_eit_t
* p_eit, uint8_t
i_table_id
, uint16_t
i_extension
,
151
uint8_t
i_version
, uint8_t i_protocol, uint16_t i_source_id,
bool
b_current_next
);
152
166
dvbpsi_atsc_eit_t
*
dvbpsi_atsc_NewEIT
(uint8_t
i_table_id
, uint16_t
i_extension
,
167
uint8_t
i_version
, uint8_t i_protocol,
168
uint16_t i_source_id,
bool
b_current_next
);
169
170
/*****************************************************************************
171
* dvbpsi_atsc_EmptyEIT
172
*****************************************************************************/
179
void
dvbpsi_atsc_EmptyEIT
(
dvbpsi_atsc_eit_t
*p_eit);
180
187
void
dvbpsi_atsc_DeleteEIT
(
dvbpsi_atsc_eit_t
*p_eit);
188
189
#ifdef __cplusplus
190
};
191
#endif
192
193
#endif
Generated on Sat May 25 2013 17:44:03 for libdvbpsi by
1.8.4