diff options
| author | qiuyiuestc <[email protected]> | 2010-09-13 01:16:10 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2010-09-13 01:16:10 +0000 |
| commit | b1357bd0dbd7c9c23de73fa4512bf4d0be2401a7 (patch) | |
| tree | 5a491f3d8245c72534898c6cee6c10f1586a4af5 /include/rtthread.h | |
| parent | 463e70efef0c375b5d3a31898cf7da180b7cb9f7 (diff) | |
add module definition
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@908 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index dbb9879af3..84d34e1213 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -14,7 +14,7 @@ * 2006-08-10 Bernard add version information * 2007-01-28 Bernard rename RT_OBJECT_Class_Static to RT_Object_Class_Static * 2007-03-03 Bernard clean up the definitions to rtdef.h - * 2010-04-11 yi.qiu add module feature + * 2010-04-11 yi.qiu add module feature */ #ifndef __RT_THREAD_H__ @@ -293,6 +293,22 @@ rt_err_t rt_device_control(rt_device_t dev, rt_uint8_t cmd, void* arg); /*@}*/ #endif +#ifdef RT_USING_MODULE +/** + * @addtogroup Module + */ +/*@{*/ +/* + * module interface + */ + +rt_module_t rt_module_load(const rt_uint8_t* name, void* module_ptr); +rt_err_t rt_module_unload(rt_module_t module); +rt_module_t rt_module_find(char* name); +rt_module_t rt_module_self (void); + +#endif + /* * interrupt service */ |
