From d240423d7422b51e10942fab00a2a34ed4c32e6f Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Wed, 17 Nov 2010 16:17:07 +0000 Subject: construct module symbol table git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1053 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- examples/gui/demo_view_module.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/gui/demo_view_module.c b/examples/gui/demo_view_module.c index 7623f8fab8..56544bdc25 100644 --- a/examples/gui/demo_view_module.c +++ b/examples/gui/demo_view_module.c @@ -39,15 +39,11 @@ static void open_btn_onbutton(rtgui_widget_t* widget, struct rtgui_event* event) rt_memset(name, 0, sizeof(name)); - /* 获得图像的类型 */ + /* 获得应用模块的类型 */ if (rt_strstr(path, ".mo") != RT_NULL || rt_strstr(path, ".so") != RT_NULL) { - rt_memcpy(name, "mod", 4); + rt_module_open(path); } - - /* 如果图像文件有效,创建相应的rtgui_image对象 */ - if (name[0] != '\0') - rt_module_load_from_file(name, path); } /* 删除 文件列表 视图 */ -- cgit v1.3.1