diff options
| author | qiuyiuestc <[email protected]> | 2010-09-23 11:10:17 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2010-09-23 11:10:17 +0000 |
| commit | 878d1b3636093e3791f27158ad607f41a61dfe25 (patch) | |
| tree | 4dc2e705866cd9d95ac2ba8cd8f4a6df17af8168 /include | |
| parent | 8d42ca4e7101c789f5dbd5d3e80706855ac79b26 (diff) | |
update module
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@933 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 2 | ||||
| -rw-r--r-- | include/rtthread.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 37082f8a76..a076808688 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -389,7 +389,7 @@ struct rt_module /* inherit from object */ struct rt_object parent; - void* module_space; + rt_uint8_t* module_space; void* module_entry; rt_uint32_t stack_size; diff --git a/include/rtthread.h b/include/rtthread.h index 5164b62576..9ce56f2049 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -303,6 +303,7 @@ rt_err_t rt_device_control(rt_device_t dev, rt_uint8_t cmd, void* arg); */ rt_module_t rt_module_load(const rt_uint8_t* name, void* module_ptr); +rt_module_t rt_module_load_from_file(const rt_uint8_t* name, const char* filename); rt_err_t rt_module_unload(rt_module_t module); rt_err_t rt_module_self_set (rt_module_t module); rt_module_t rt_module_self (void); |
