libdvbpsi 0.2.0
|
00001 /***************************************************************************** 00002 * dr_69.h 00003 * Copyright (C) 2007-2010 VideoLAN 00004 * $Id$ 00005 * 00006 * Authors: Pinkava Jiri <master_up@post.cz> 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 00034 #ifndef _DVBPSI_DR_69_H_ 00035 #define _DVBPSI_DR_69_H_ 00036 00037 #ifdef __cplusplus 00038 extern "C" { 00039 #endif 00040 00041 00042 /***************************************************************************** 00043 * dvbpsi_PDC_dr_t 00044 *****************************************************************************/ 00056 typedef struct dvbpsi_PDC_dr_s 00057 { 00058 /* pdc[0] ~= day; PDC[1] ~= month; PDC[2] ~= hour; PDC[3] ~= min; */ 00059 uint8_t i_PDC[4]; 00060 } dvbpsi_PDC_dr_t; 00061 00062 00063 /***************************************************************************** 00064 * dvbpsi_DecodePDCDr 00065 *****************************************************************************/ 00074 dvbpsi_PDC_dr_t* dvbpsi_DecodePDCDr(dvbpsi_descriptor_t * p_descriptor); 00075 00076 00077 /***************************************************************************** 00078 * dvbpsi_GenPDCDr 00079 *****************************************************************************/ 00089 dvbpsi_descriptor_t * dvbpsi_GenPDCDr(dvbpsi_PDC_dr_t * p_decoded, 00090 int b_duplicate); 00091 00092 00093 #ifdef __cplusplus 00094 }; 00095 #endif 00096 00097 #else 00098 #error "Multiple inclusions of dr_69.h" 00099 #endif 00100