|
SASC-NG
DVBSoftCAM
|
00001 /* 00002 * Softcam plugin to VDR (C++) 00003 * 00004 * This code is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This code 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 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 * Or, point your browser to http://www.gnu.org/copyleft/gpl.html 00018 */ 00019 00020 #ifndef __OPENTV_H 00021 #define __OPENTV_H 00022 00023 #define COMP_SECTION_HDR 0x434F4D50 00024 #define INFO_SECTION_HDR 0x494E464F 00025 #define CODE_SECTION_HDR 0x434F4445 00026 #define DATA_SECTION_HDR 0x44415441 00027 #define GDBO_SECTION_HDR 0x4744424F 00028 #define LAST_SECTION_HDR 0x4C415354 00029 #define SWAP_SECTION_HDR 0x53574150 00030 00031 typedef struct comp_header { 00032 unsigned int magic; 00033 unsigned int csize, dsize, usize; 00034 unsigned char end; 00035 } comp_header_t; 00036 00037 typedef struct info_header { 00038 unsigned int magic; 00039 unsigned int bsssize; 00040 unsigned int stacksize; 00041 } info_header_t; 00042 00043 typedef struct code_header { 00044 unsigned int magic; 00045 unsigned int size, m_id; 00046 unsigned short entry_point; 00047 unsigned short end; 00048 const unsigned char *code; 00049 } code_header_t; 00050 00051 typedef struct data_header { 00052 unsigned int magic; 00053 unsigned int dlen; 00054 const unsigned char *data; 00055 } data_header_t; 00056 00057 #endif /* __OPENTV_H */