remove rt_current_module and rt_module_set function.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2459 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2012-11-28 14:25:06 +00:00
parent ee11663d87
commit b60476b8e7
1 changed files with 4 additions and 2 deletions

View File

@ -405,12 +405,13 @@ rt_err_t rt_device_control(rt_device_t dev, rt_uint8_t cmd, void *arg);
*/ */
rt_module_t rt_module_load(const char *name, void *module_ptr); rt_module_t rt_module_load(const char *name, void *module_ptr);
rt_err_t rt_module_unload(rt_module_t module); rt_err_t rt_module_unload(rt_module_t module);
#ifdef RT_USING_DFS
rt_module_t rt_module_open(const char *filename); rt_module_t rt_module_open(const char *filename);
#endif
void *rt_module_malloc(rt_size_t size); void *rt_module_malloc(rt_size_t size);
void *rt_module_realloc(void *ptr, rt_size_t size); void *rt_module_realloc(void *ptr, rt_size_t size);
void rt_module_free(rt_module_t module, void *addr); void rt_module_free(rt_module_t module, void *addr);
rt_module_t rt_module_self(void); rt_module_t rt_module_self(void);
rt_err_t rt_module_set(rt_module_t module);
rt_module_t rt_module_find(const char *name); rt_module_t rt_module_find(const char *name);
#ifdef RT_USING_HOOK #ifdef RT_USING_HOOK
@ -456,8 +457,9 @@ rt_int32_t rt_vsprintf(char *dest, const char *format, va_list arg_ptr);
rt_int32_t rt_sprintf(char *buf ,const char *format, ...); rt_int32_t rt_sprintf(char *buf ,const char *format, ...);
rt_int32_t rt_snprintf(char *buf, rt_size_t size, const char *format, ...); rt_int32_t rt_snprintf(char *buf, rt_size_t size, const char *format, ...);
#ifdef RT_USING_DEVICE #if defined(RT_USING_DEVICE) && defined(RT_USING_CONSOLE)
rt_device_t rt_console_set_device(const char *name); rt_device_t rt_console_set_device(const char *name);
rt_device_t rt_console_get_device(void);
#endif #endif
rt_err_t rt_get_errno(void); rt_err_t rt_get_errno(void);