libdvbpsi  0.2.2
psi.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * psi.h
3  * Copyright (C) 2001-2010 VideoLAN
4  * $Id: psi.h,v 1.6 2002/04/02 17:55:30 bozo Exp $
5  *
6  * Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  *****************************************************************************/
23 
32 #ifndef _DVBPSI_PSI_H_
33 #define _DVBPSI_PSI_H_
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 
40 /*****************************************************************************
41  * dvbpsi_psi_section_t
42  *****************************************************************************/
70 {
71  /* non-specific section data */
72  uint8_t i_table_id;
75  uint16_t i_length;
77  /* used if b_syntax_indicator is true */
78  uint16_t i_extension;
81  uint8_t i_version;
83  uint8_t i_number;
84  uint8_t i_last_number;
86  /* non-specific section data */
87  /* the content is table-specific */
88  uint8_t * p_data;
89  uint8_t * p_payload_start;
90  uint8_t * p_payload_end;
92  /* used if b_syntax_indicator is true */
93  uint32_t i_crc;
95  /* list handling */
99 };
100 
101 
102 /*****************************************************************************
103  * dvbpsi_NewPSISection
104  *****************************************************************************/
112 
113 
114 /*****************************************************************************
115  * dvbpsi_DeletePSISections
116  *****************************************************************************/
124 
125 
126 /*****************************************************************************
127  * dvbpsi_ValidPSISection
128  *****************************************************************************/
137 __attribute__((deprecated))
138 int dvbpsi_ValidPSISection(dvbpsi_psi_section_t* p_section);
139 
140 
141 /*****************************************************************************
142  * dvbpsi_BuildPSISection
143  *****************************************************************************/
150 __attribute__((deprecated))
151 void dvbpsi_BuildPSISection(dvbpsi_psi_section_t* p_section);
152 
153 
154 #ifdef __cplusplus
155 };
156 #endif
157 
158 #else
159 #error "Multiple inclusions of psi.h"
160 #endif
161