libdvbpsi  1.3.0
dr_0a.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * dr_0a.h
00003  * Copyright (C) 2001-2010 VideoLAN
00004  * $Id$
00005  *
00006  * Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2.1 of the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00021  *
00022  *****************************************************************************/
00023 
00035 #ifndef _DVBPSI_DR_0A_H_
00036 #define _DVBPSI_DR_0A_H_
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042 #define DR_0A_API_VER 2                     
00044 /*****************************************************************************
00045  * dvbpsi_iso639_dr_t
00046  *****************************************************************************/
00047 
00058 typedef struct dvbpsi_iso639_dr_s
00059 {
00060   uint8_t       i_code_count;           
00062   struct {
00063     iso_639_language_code_t  iso_639_code; 
00064     uint8_t                  i_audio_type; 
00065   } code[64];                              
00067 } dvbpsi_iso639_dr_t;
00068 
00069 
00070 /*****************************************************************************
00071  * dvbpsi_DecodeISO639Dr
00072  *****************************************************************************/
00081 dvbpsi_iso639_dr_t* dvbpsi_DecodeISO639Dr(dvbpsi_descriptor_t * p_descriptor);
00082 
00083 
00084 /*****************************************************************************
00085  * dvbpsi_GenISO639Dr
00086  *****************************************************************************/
00097 dvbpsi_descriptor_t * dvbpsi_GenISO639Dr(dvbpsi_iso639_dr_t * p_decoded,
00098                                          bool b_duplicate);
00099 
00100 
00101 #ifdef __cplusplus
00102 };
00103 #endif
00104 
00105 #else
00106 #error "Multiple inclusions of dr_0a.h"
00107 #endif
00108