summaryrefslogtreecommitdiff
path: root/examples/module/extapp
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-01-15 18:59:57 +0800
committerBernard Xiong <[email protected]>2018-01-15 18:59:57 +0800
commit8123ab4cd7097c04f44220b2d8d0d636a2c8fd8b (patch)
tree67fb897d9b53d68d9cd131ee775c59eedee2725a /examples/module/extapp
parente14d030de9ab4135e5d006ecbef5a41cb88ce16c (diff)
[Examples] Remove unnecessary files
Diffstat (limited to 'examples/module/extapp')
-rw-r--r--examples/module/extapp/Sconscript7
-rw-r--r--examples/module/extapp/extapp.c35
2 files changed, 0 insertions, 42 deletions
diff --git a/examples/module/extapp/Sconscript b/examples/module/extapp/Sconscript
deleted file mode 100644
index d8dd99964e..0000000000
--- a/examples/module/extapp/Sconscript
+++ /dev/null
@@ -1,7 +0,0 @@
-import rtconfig
-Import('RTT_ROOT')
-from building import *
-
-src = Glob('*.c')
-group = DefineGroup('', src, depend = [''])
-Return('group') \ No newline at end of file
diff --git a/examples/module/extapp/extapp.c b/examples/module/extapp/extapp.c
deleted file mode 100644
index 29d48164e5..0000000000
--- a/examples/module/extapp/extapp.c
+++ /dev/null
@@ -1,35 +0,0 @@
-#include <rtthread.h>
-#include <dlfcn.h>
-
-typedef void (*func)(void);
-
-int main(void)
-{
- func f1, f2, f3, f4, f5;
-
- void* handle = dlopen("/mo/ext.so", RTLD_NOW);
- if(handle != RT_NULL)
- {
- f1= (func)dlsym(handle, "function1");
- f2= (func)dlsym(handle, "function2");
- f3= (func)dlsym(handle, "function3");
- f4= (func)dlsym(handle, "function4");
- f5= (func)dlsym(handle, "function5");
-
- if(f1 != RT_NULL) f1();
- else rt_kprintf("dlsym function1 failed.\n");
- if(f2 != RT_NULL) f2();
- else rt_kprintf("dlsym function2 failed.\n");
- if(f3 != RT_NULL) f3();
- else rt_kprintf("dlsym function3 failed.\n");
- if(f4 != RT_NULL) f4();
- else rt_kprintf("dlsym function4 failed.\n");
- if(f5 != RT_NULL) f5();
- else rt_kprintf("dlsym function5 failed.\n");
- }
-
- if(handle != RT_NULL) dlclose(handle);
-
- return 0;
-}
-