rt_service_loader.c.svn-base
来自「RT-Thread是发展中的下一代微内核嵌入式实时操作系统」· SVN-BASE 代码 · 共 51 行
SVN-BASE
51 行
/* * File : rt_service_loader.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006, RT-Thread Development Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.fayfayspace.org/license/LICENSE. * * Change Logs: * Date Author Notes * 2006-04-21 Bernard The first version *//*! * \addtogroup xgServiceLoader *//*@{*//*! * @brief loader service module * * this function will return the service module with specified name * * @param loader the service loader self * @param name the specified name * * @return the found service module */struct rt_service_item* rt_service_loader(struct rt_service_loader* location, const char* name){ register rt_base_t temp; struct rt_service_item* item; for (temp = 0; temp < loader->number; temp ++) { item = (struct rt_service_item*)((unsigned char*)loader + loader->position + temp * sizeof(struct rt_service_item)); if (strcmp(item->name, name) == 0) { /* found it */ return item; } } return RT_NULL;}/*@}*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?