libdvbpsi  0.2.2
dvbpsi.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * dvbpsi.h
3  * Copyright (C) 2001-2011 VideoLAN
4  * $Id$
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 
33 #ifndef _DVBPSI_DVBPSI_H_
34 #define _DVBPSI_DVBPSI_H_
35 
36 #define DVBPSI_VERSION 0.2.2
37 #define DVBPSI_VERSION_INT ((0<<16)+(2<<8)+2)
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43 
44 /*****************************************************************************
45  * dvbpsi_handle
46  *****************************************************************************/
51 typedef struct dvbpsi_decoder_s * dvbpsi_handle __attribute__((deprecated));
52 
53 
54 /*****************************************************************************
55  * dvbpsi_PushPacket
56  *****************************************************************************/
66 __attribute__((deprecated))
67 void dvbpsi_PushPacket(dvbpsi_handle h_dvbpsi, uint8_t* p_data);
68 
69 
70 /*****************************************************************************
71  * The following definitions are just here to allow external decoders but
72  * shouldn't be used for any other purpose.
73  *****************************************************************************/
74 
80 
81 
82 /*****************************************************************************
83  * dvbpsi_callback
84  *****************************************************************************/
90 typedef void (* dvbpsi_callback)(dvbpsi_handle p_decoder,
91  dvbpsi_psi_section_t* p_section);
92 
93 
94 /*****************************************************************************
95  * dvbpsi_decoder_t
96  *****************************************************************************/
108 typedef struct dvbpsi_decoder_s
109 {
125  dvbpsi_psi_section_t * p_current_section;
126  int i_need;
131 
132 
133 #ifdef __cplusplus
134 };
135 #endif
136 
137 #else
138 #error "Multiple inclusions of dvbpsi.h"
139 #endif