libdvbpsi  1.3.0
dr_58.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * dr_58.h
00003  * Copyright (C) 2001-2010 VideoLAN
00004  * $Id$
00005  *
00006  * Authors: Johann Hanne
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_58_H_
00036 #define _DVBPSI_DR_58_H_
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042 
00043 /*****************************************************************************
00044  * dvbpsi_local_time_offset_t
00045  *****************************************************************************/
00057 typedef struct dvbpsi_local_time_offset_s
00058 {
00059   uint8_t       i_country_code[3];            
00060   uint8_t       i_country_region_id;          
00061   uint8_t       i_local_time_offset_polarity; 
00062   uint16_t      i_local_time_offset;          
00063   uint64_t      i_time_of_change;             
00064   uint16_t      i_next_time_offset;           
00066 } dvbpsi_local_time_offset_t;
00067 
00073 #define DVBPSI_LOCAL_TIME_OFFSET_DR_MAX 19
00074 
00075 /*****************************************************************************
00076  * dvbpsi_local_time_offset_dr_t
00077  *****************************************************************************/
00089 typedef struct dvbpsi_local_time_offset_dr_s
00090 {
00091   uint8_t      i_local_time_offsets_number;             
00092   dvbpsi_local_time_offset_t
00093                p_local_time_offset[DVBPSI_LOCAL_TIME_OFFSET_DR_MAX]; 
00095 } dvbpsi_local_time_offset_dr_t;
00096 
00097 /*****************************************************************************
00098  * dvbpsi_DecodeLocalTimeOffsetDr
00099  *****************************************************************************/
00108 dvbpsi_local_time_offset_dr_t* dvbpsi_DecodeLocalTimeOffsetDr(
00109                                         dvbpsi_descriptor_t * p_descriptor);
00110 
00111 
00112 /*****************************************************************************
00113  * dvbpsi_GenLocalTimeOffsetDr
00114  *****************************************************************************/
00125 dvbpsi_descriptor_t * dvbpsi_GenLocalTimeOffsetDr(
00126                                         dvbpsi_local_time_offset_dr_t * p_decoded,
00127                                         bool b_duplicate);
00128 
00129 
00130 #ifdef __cplusplus
00131 };
00132 #endif
00133 
00134 #else
00135 #error "Multiple inclusions of dr_58.h"
00136 #endif