libdvbpsi  0.2.2
dr_0a.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * dr_0a.h
3  * Copyright (C) 2001-2010 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 
35 #ifndef _DVBPSI_DR_0A_H_
36 #define _DVBPSI_DR_0A_H_
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 #define DR_0A_API_VER 2
43 typedef uint8_t iso_639_language_code_t[3];
44 
45 /*****************************************************************************
46  * dvbpsi_iso639_dr_t
47  *****************************************************************************/
59 typedef struct dvbpsi_iso639_dr_s
60 {
61  uint8_t i_code_count;
63  struct {
64  iso_639_language_code_t iso_639_code;
65  uint8_t i_audio_type;
66  } code[64];
67 
69 
70 
71 /*****************************************************************************
72  * dvbpsi_DecodeISO639Dr
73  *****************************************************************************/
83 
84 
85 /*****************************************************************************
86  * dvbpsi_GenISO639Dr
87  *****************************************************************************/
99  int b_duplicate);
100 
101 
102 #ifdef __cplusplus
103 };
104 #endif
105 
106 #else
107 #error "Multiple inclusions of dr_0a.h"
108 #endif
109