libdvbpsi  1.2.0
descriptor.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * descriptor.h
3  * Copyright (C) 2001-2010 VideoLAN
4  * $Id: descriptor.h,v 1.5 2002/05/08 13:00:40 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 
35 #ifndef _DVBPSI_DESCRIPTOR_H_
36 #define _DVBPSI_DESCRIPTOR_H_
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 #include <sys/types.h>
43 
44 /*****************************************************************************
45  * common definitions
46  *****************************************************************************/
51 typedef uint8_t iso_639_language_code_t[3];
52 
53 /*****************************************************************************
54  * dvbpsi_descriptor_t
55  *****************************************************************************/
80 typedef struct dvbpsi_descriptor_s
81 {
82  uint8_t i_tag;
83  uint8_t i_length;
85  uint8_t * p_data;
90  void * p_decoded;
93 
94 /*****************************************************************************
95  * dvbpsi_NewDescriptor
96  *****************************************************************************/
108  uint8_t* p_data);
109 
110 
111 /*****************************************************************************
112  * dvbpsi_DeleteDescriptors
113  *****************************************************************************/
122 
123 /*****************************************************************************
124  * dvbpsi_AddDescriptor
125  *****************************************************************************/
135  dvbpsi_descriptor_t *p_descriptor);
136 
137 /*****************************************************************************
138  * dvbpsi_CanDecodeAsDescriptor
139  *****************************************************************************/
147 bool dvbpsi_CanDecodeAsDescriptor(dvbpsi_descriptor_t *p_descriptor, const uint8_t i_tag);
148 
149 /*****************************************************************************
150  * dvbpsi_IsDescriptorDecoded
151  *****************************************************************************/
159 
160 /*****************************************************************************
161  * dvbpsi_DuplicateDecodedDescriptor
162  *****************************************************************************/
170 void *dvbpsi_DuplicateDecodedDescriptor(void *p_decoded, ssize_t i_size);
171 
172 #ifdef __cplusplus
173 };
174 #endif
175 
176 #else
177 #error "Multiple inclusions of descriptor.h"
178 #endif
179