diff options
| author | bernard <[email protected]> | 2014-03-11 15:44:35 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2014-03-11 15:44:35 +0800 |
| commit | dbcb4a1ccff7c3840a722110d7a98816c0dd5cf2 (patch) | |
| tree | c08658d821daa86b573dc5574712be124f2a070d | |
| parent | 898e0d2f3fa2e6bb77d3693d693e39cc73814dbb (diff) | |
[Kernel] declare more APIs in module
| -rw-r--r-- | include/rtthread.h | 3 | ||||
| -rw-r--r-- | src/module.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index f53c7b95b8..abe3a614ed 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -434,6 +434,9 @@ void rt_module_load_sethook(void (*hook)(rt_module_t module)); void rt_module_unload_sethook(void (*hook)(rt_module_t module)); #endif +void rt_module_init_object_container(struct rt_module *module); +rt_err_t rt_module_destroy(rt_module_t module); + /*@}*/ #endif diff --git a/src/module.c b/src/module.c index ec5ed3f7d0..428d42e961 100644 --- a/src/module.c +++ b/src/module.c @@ -242,7 +242,7 @@ static int rt_module_arm_relocate(struct rt_module *module, return 0; } -static void rt_module_init_object_container(struct rt_module *module) +void rt_module_init_object_container(struct rt_module *module) { RT_ASSERT(module != RT_NULL); |
