libdvbpsi  1.3.0
dr_83.h
Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2006  Adam Charrett
00003 
00004 This library is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU Lesser General Public
00006 License as published by the Free Software Foundation; either
00007 version 2.1 of the License, or (at your option) any later version.
00008 
00009 This library is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012 Lesser General Public License for more details.
00013 
00014 You should have received a copy of the GNU Lesser General Public
00015 License along with this library; if not, write to the Free Software
00016 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00017 
00018 dr_83.h
00019 
00020 Decode Logical Channel Number Descriptor.
00021 
00022 */
00023 
00030 #ifndef _DR_83_H
00031 #define _DR_83_H
00032 
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036 
00037 /*****************************************************************************
00038  * dvbpsi_lcn_entry_t
00039  *****************************************************************************/
00050 typedef struct dvbpsi_lcn_entry_s
00051 {
00052     uint16_t i_service_id;             
00053     int      b_visible_service_flag;   
00054     uint16_t i_logical_channel_number; 
00055 } dvbpsi_lcn_entry_t;
00056 
00057 /*****************************************************************************
00058  * dvbpsi_lcn_dr_s
00059  *****************************************************************************/
00070 typedef struct dvbpsi_lcn_dr_s
00071 {
00072     uint8_t i_number_of_entries;     
00073     dvbpsi_lcn_entry_t p_entries[64];
00074 } dvbpsi_lcn_dr_t;
00075 
00076 /*****************************************************************************
00077  * dvbpsi_DecodeLCNDr
00078  *****************************************************************************/
00086 dvbpsi_lcn_dr_t *dvbpsi_DecodeLCNDr(dvbpsi_descriptor_t *p_descriptor);
00087 
00088 /*****************************************************************************
00089  * dvbpsi_GenLCNDr
00090  *****************************************************************************/
00101 dvbpsi_descriptor_t* dvbpsi_GenLCNDr(dvbpsi_lcn_dr_t* p_decoded, bool b_duplicate);
00102 
00103 #ifdef __cplusplus
00104 };
00105 #endif
00106 
00107 #endif // _DR_83_H
00108