This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088

Fork of libMiMic by Ryo Iizuka

Committer:
nyatla
Date:
Sat Apr 20 05:03:57 2013 +0000
Revision:
12:efe841863fc8
Parent:
core/utils/NyLPC_cRomFileSet.cpp@1:9f6a78395432
MiMic r218

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nyatla 1:9f6a78395432 1 /*********************************************************************************
nyatla 1:9f6a78395432 2 * PROJECT: MiMic
nyatla 1:9f6a78395432 3 * --------------------------------------------------------------------------------
nyatla 1:9f6a78395432 4 *
nyatla 1:9f6a78395432 5 * This file is part of MiMic
nyatla 1:9f6a78395432 6 * Copyright (C)2011 Ryo Iizuka
nyatla 1:9f6a78395432 7 *
nyatla 1:9f6a78395432 8 * MiMic is free software: you can redistribute it and/or modify
nyatla 1:9f6a78395432 9 * it under the terms of the GNU Lesser General Public License as published
nyatla 1:9f6a78395432 10 * by the Free Software Foundation, either version 3 of the License, or
nyatla 1:9f6a78395432 11 * (at your option) any later version.
nyatla 1:9f6a78395432 12 *
nyatla 1:9f6a78395432 13 * This program is distributed in the hope that it will be useful,
nyatla 1:9f6a78395432 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nyatla 1:9f6a78395432 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
nyatla 1:9f6a78395432 16 * GNU General Public License for more details.
nyatla 1:9f6a78395432 17 *
nyatla 1:9f6a78395432 18 * You should have received a copy of the GNU Lesser General Public License
nyatla 1:9f6a78395432 19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
nyatla 1:9f6a78395432 20 *
nyatla 1:9f6a78395432 21 * For further information please contact.
nyatla 1:9f6a78395432 22 * http://nyatla.jp/
nyatla 1:9f6a78395432 23 * <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>
nyatla 1:9f6a78395432 24 *
nyatla 1:9f6a78395432 25 *********************************************************************************/
nyatla 1:9f6a78395432 26 #include "NyLPC_cRomFileSet.h"
nyatla 1:9f6a78395432 27
nyatla 1:9f6a78395432 28 /**
nyatla 1:9f6a78395432 29 * See Header file.
nyatla 1:9f6a78395432 30 */
nyatla 1:9f6a78395432 31 void NyLPC_cRomFileSet_initialize(NyLPC_TcRomFileSet_t* i_inst,const struct NyLPC_TRomFileData* i_ref_fs[],NyLPC_TUInt32 i_num_of_file)
nyatla 1:9f6a78395432 32 {
nyatla 1:9f6a78395432 33 i_inst->_ref_fs=i_ref_fs;
nyatla 1:9f6a78395432 34 i_inst->_num_of_fs=i_num_of_file;
nyatla 1:9f6a78395432 35 return;
nyatla 1:9f6a78395432 36 }
nyatla 1:9f6a78395432 37 /**
nyatla 1:9f6a78395432 38 * See Header file.
nyatla 1:9f6a78395432 39 */
nyatla 1:9f6a78395432 40 const struct NyLPC_TRomFileData* NyLPC_cRomFileSet_getFilaData(NyLPC_TcRomFileSet_t* i_inst,const NyLPC_TChar* i_name)
nyatla 1:9f6a78395432 41 {
nyatla 1:9f6a78395432 42 int i;
nyatla 1:9f6a78395432 43 for(i=0;i<i_inst->_num_of_fs;i++){
nyatla 1:9f6a78395432 44 if(strcmp(i_inst->_ref_fs[i]->name,i_name)==0){
nyatla 1:9f6a78395432 45 return i_inst->_ref_fs[i];
nyatla 1:9f6a78395432 46 }
nyatla 1:9f6a78395432 47 }
nyatla 1:9f6a78395432 48 return NULL;
nyatla 1:9f6a78395432 49 }