libdvbpsi  2.0.0-git
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  *****************************************************************************/
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];
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;
83  uint16_t i_source_id;
84  uint8_t i_protocol;
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 
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  *****************************************************************************/
180 
188 
189 #ifdef __cplusplus
190 };
191 #endif
192 
193 #endif
uint32_t i_start_time
Definition: atsc_eit.h:51
uint8_t i_version
Definition: atsc_eit.h:81
bool dvbpsi_atsc_AttachEIT(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_atsc_eit_callback pf_callback, void *p_cb_data)
Creation and initialization of a EIT decoder.
uint8_t i_etm_location
Definition: atsc_eit.h:52
void dvbpsi_atsc_DeleteEIT(dvbpsi_atsc_eit_t *p_eit)
Clean and free a dvbpsi_eit_t structure.
uint16_t i_extension
Definition: sis.h:101
bool b_current_next
Definition: sis.h:107
uint16_t i_event_id
Definition: atsc_eit.h:50
void dvbpsi_atsc_DetachEIT(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)
Destroy a EIT decoder.
uint8_t i_table_id
Definition: atsc_eit.h:78
uint8_t i_title[256]
Definition: atsc_eit.h:55
struct dvbpsi_atsc_eit_event_s dvbpsi_atsc_eit_event_t
dvbpsi_atsc_eit_event_t type definition.
uint8_t i_table_id
Definition: sis.h:100
dvbpsi_atsc_eit_event_t * p_first_event
Definition: atsc_eit.h:86
bool b_current_next
Definition: atsc_eit.h:82
ATSC EIT Event structure.
Definition: atsc_eit.h:48
void dvbpsi_atsc_EmptyEIT(dvbpsi_atsc_eit_t *p_eit)
Clean a dvbpsi_eit_t structure.
ATSC EIT structure.
Definition: atsc_eit.h:76
void dvbpsi_atsc_InitEIT(dvbpsi_atsc_eit_t *p_eit, uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, uint16_t i_source_id, bool b_current_next)
Initialize a user-allocated dvbpsi_atsc_eit_t structure.
uint8_t i_protocol
Definition: atsc_eit.h:84
struct dvbpsi_atsc_eit_s dvbpsi_atsc_eit_t
dvbpsi_atsc_eit_t type definition.
uint8_t i_title_length
Definition: atsc_eit.h:54
dvbpsi_descriptor_t * p_first_descriptor
Definition: atsc_eit.h:88
struct dvbpsi_atsc_eit_event_s * p_next
Definition: atsc_eit.h:59
uint16_t i_extension
Definition: atsc_eit.h:79
uint32_t i_length_seconds
Definition: atsc_eit.h:53
dvbpsi_atsc_eit_t * dvbpsi_atsc_NewEIT(uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, uint16_t i_source_id, bool b_current_next)
Allocate and initialize a new dvbpsi_eit_t structure. Use ObjectRefDec to delete it.
DVBPSI handle structure.
Definition: dvbpsi.h:142
Descriptor structure.
Definition: descriptor.h:82
void(* dvbpsi_atsc_eit_callback)(void *p_cb_data, dvbpsi_atsc_eit_t *p_new_eit)
Callback type definition.
Definition: atsc_eit.h:99
uint8_t i_version
Definition: sis.h:104
dvbpsi_descriptor_t * p_first_descriptor
Definition: atsc_eit.h:57
uint16_t i_source_id
Definition: atsc_eit.h:83