Rev 4168 | Rev 4371 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 3265 | post | 1 | #ifndef MODULES_H |
| 2 | #define MODULES_H |
||
| 3 | |||
| 4 | /* Each built in function has two files, one being an entry.h file which |
||
| 5 | * prototypes the run/help entry functions, the other being a .def file |
||
| 6 | * which fills the modules[] array according to the cmd_t structure |
||
| 7 | * defined in cmds.h. |
||
| 8 | * |
||
| 9 | * To add or remove a module, just make a new directory in cmds/modules |
||
| 10 | * for it and copy the 'show' example for basics, then include it here. |
||
| 11 | * (or reverse the process to remove one) |
||
| 12 | * |
||
| 13 | * NOTE: See module_ aliases.h as well, this is where aliases (commands that |
||
| 14 | * share an entry point with others) are indexed */ |
||
| 15 | |||
| 16 | #include "config.h" |
||
| 17 | |||
| 18 | /* Prototypes for each module's entry (help/exec) points */ |
||
| 19 | |||
| 20 | #include "help/entry.h" |
||
| 3277 | post | 21 | #include "mkdir/entry.h" |
| 22 | #include "rm/entry.h" |
||
| 23 | #include "cat/entry.h" |
||
| 24 | #include "touch/entry.h" |
||
| 25 | #include "ls/entry.h" |
||
| 3371 | post | 26 | #include "pwd/entry.h" |
| 3420 | post | 27 | #include "sleep/entry.h" |
| 28 | #include "cp/entry.h" |
||
| 4364 | jermar | 29 | #include "mv/entry.h" |
| 4168 | svoboda | 30 | #include "kcon/entry.h" |
| 3265 | post | 31 | |
| 32 | /* Each .def function fills the module_t struct with the individual name, entry |
||
| 33 | * point, help entry point, etc. You can use config.h to control what modules |
||
| 34 | * are loaded based on what libraries exist on the system. */ |
||
| 35 | |||
| 36 | module_t modules[] = { |
||
| 3373 | post | 37 | #include "help/help_def.h" |
| 38 | #include "mkdir/mkdir_def.h" |
||
| 39 | #include "rm/rm_def.h" |
||
| 40 | #include "cat/cat_def.h" |
||
| 41 | #include "touch/touch_def.h" |
||
| 42 | #include "ls/ls_def.h" |
||
| 43 | #include "pwd/pwd_def.h" |
||
| 3420 | post | 44 | #include "sleep/sleep_def.h" |
| 45 | #include "cp/cp_def.h" |
||
| 4364 | jermar | 46 | #include "mv/mv_def.h" |
| 4168 | svoboda | 47 | #include "kcon/kcon_def.h" |
| 3265 | post | 48 | {NULL, NULL, NULL, NULL} |
| 49 | }; |
||
| 50 | |||
| 51 | #endif |