libdvbpsi  1.2.0
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