Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
NyLPC_cRomFileSet.h
00001 /********************************************************************************* 00002 * PROJECT: MiMic 00003 * -------------------------------------------------------------------------------- 00004 * 00005 * This file is part of MiMic 00006 * Copyright (C)2011 Ryo Iizuka 00007 * 00008 * MiMic is free software: you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License as published 00010 * by the Free Software Foundation, either version 3 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program 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 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public License 00019 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00020 * 00021 * For further information please contact. 00022 * http://nyatla.jp/ 00023 * <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp> 00024 * 00025 *********************************************************************************/ 00026 #ifndef NYLPC_CROMFILESET_H_ 00027 #define NYLPC_CROMFILESET_H_ 00028 #include <stdlib.h> 00029 #include "NyLPC_stdlib.h" 00030 00031 #ifdef __cplusplus 00032 extern "C" { 00033 #endif /* __cplusplus */ 00034 00035 /** 00036 * オンメモリファイルの構造体。 00037 */ 00038 struct NyLPC_TRomFileData{ 00039 const char* name; 00040 NyLPC_TUInt32 size; 00041 const char* content_type; 00042 const char* data; 00043 }; 00044 /** 00045 * このクラスは、NyLPC_TRomFileData構造体の配列を管理します。 00046 */ 00047 typedef struct NyLPC_TcRomFileSet NyLPC_TcRomFileSet_t; 00048 00049 struct NyLPC_TcRomFileSet 00050 { 00051 const struct NyLPC_TRomFileData** _ref_fs; 00052 NyLPC_TUInt32 _num_of_fs; 00053 }; 00054 00055 /** 00056 * このクラスは、オンメモリデータをファイルとして提供します。 00057 * RomFileのセットを初期化します。 00058 * @param i_inst 00059 * 初期化するインスタンスのポインタを指定します。 00060 * @param i_ref_fs 00061 * ROMFS 00062 */ 00063 void NyLPC_cRomFileSet_initialize(NyLPC_TcRomFileSet_t* i_inst,const struct NyLPC_TRomFileData* i_ref_fs[],NyLPC_TUInt32 i_num_of_file); 00064 #define NyLPC_cRomFileSet_finalize(i) 00065 00066 /** 00067 * 名前に一致するROMファイルデータセットを取得します。 00068 */ 00069 const struct NyLPC_TRomFileData* NyLPC_cRomFileSet_getFilaData(NyLPC_TcRomFileSet_t* i_inst,const NyLPC_TChar* i_name); 00070 00071 #ifdef __cplusplus 00072 } 00073 #endif /* __cplusplus */ 00074 00075 #endif /* NYLPC_CROMFILE_H_ */
Generated on Tue Jul 12 2022 16:22:59 by
1.7.2
