⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rt_service_loader.h

📁 RT-Thread是发展中的下一代微内核嵌入式实时操作系统
💻 H
字号:
/* * File      : rt_service_loader.h * 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 */#ifndef __RT_SERVICE_LOADER_H__#define __RT_SERVICE_LOADER_H__/*! * \file rt_service_loader.h * \brief this file defines the Service Loader library */#ifdef __cplusplusextern "C" {#endif/*! * \addtogroup xgServiceLoader *//*@{*/typedef struct rt_service_item* (*loader_func)(struct rt_service_loader* location, const char* name);struct rt_service_loader{	rt_uint32 magic;			/* service loader magic */	loader_func loader;			/* loader function */	rt_uint32 position;			/* service items' position */	rt_uint32 number;			/* number of service items */};struct rt_service_item{	char name[RT_NAME_MAX];		/* service name */	void* entry;				/* service entry */	rt_size_t  length;			/* service length */};struct rt_service_item* rt_service_loader(struct rt_service_loader* location, const char* name);/*@}*/#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -