SHOW:
|
|
- or go back to the newest paste.
| 1 | /home/andypugh/linuxcnc-dev/src/hal/drivers/mesa-hostmot2/setsserial.o: In function `cleanup_module': | |
| 2 | (.text+0x24): multiple definition of `cleanup_module' | |
| 3 | /home/andypugh/linuxcnc-dev/src/hal/drivers/mesa-hostmot2/hostmot2.o:(.text+0x2b0): first defined here | |
| 4 | /home/andypugh/linuxcnc-dev/src/hal/drivers/mesa-hostmot2/setsserial.o: In function `init_module': | |
| 5 | (.text+0x0): multiple definition of `init_module' | |
| 6 | - | /home/andypugh/linuxcnc-dev/src/hal/drivers/mesa-hostmot2/hostmot2.o:(.text+0x2d3): first defined here |
| 6 | + | /home/andypugh/linuxcnc-dev/src/hal/drivers/mesa-hostmot2/hostmot2.o:(.text+0x2d3): first defined here |
| 7 | ||
| 8 | <this is the code, there isn't a lot of it yet> | |
| 9 | ||
| 10 | #include <linux/slab.h> | |
| 11 | #include <linux/ctype.h> | |
| 12 | #include "rtapi.h" | |
| 13 | #include "rtapi_app.h" | |
| 14 | #include "rtapi_string.h" | |
| 15 | #include "rtapi_math.h" | |
| 16 | #include "hal.h" | |
| 17 | ||
| 18 | #include "hostmot2.h" | |
| 19 | ||
| 20 | static int comp_id; | |
| 21 | ||
| 22 | char *cmd[30]; | |
| 23 | int cnt; | |
| 24 | RTAPI_MP_ARRAY_STRING(cmd, cnt, "smart-serial remote flashing commands" ); | |
| 25 | ||
| 26 | MODULE_INFO(linuxcnc, "component:setsserial:"); | |
| 27 | MODULE_INFO(linuxcnc, "author:andy pugh"); | |
| 28 | MODULE_INFO(linuxcnc, "license:GPL"); | |
| 29 | MODULE_LICENSE("GPL");
| |
| 30 | ||
| 31 | void rtapi_app_exit(void) {
| |
| 32 | hal_exit(comp_id); | |
| 33 | } | |
| 34 | ||
| 35 | int rtapi_app_main(void) {
| |
| 36 | int r = 0; | |
| 37 | ||
| 38 | comp_id = hal_init("setsserial");
| |
| 39 | if(comp_id < 0) return comp_id; | |
| 40 | ||
| 41 | hal_exit(comp_id); | |
| 42 | ||
| 43 | return r; | |
| 44 | } |