lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 216d6fc was 216d6fc, checked in by Tim Post <echo@…>, 17 years ago |
Merge with shell @ 3241 for bdsh
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
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"
|
---|
21 | #include "quit/entry.h"
|
---|
22 | #include "mkdir/entry.h"
|
---|
23 | #include "rm/entry.h"
|
---|
24 | #include "cat/entry.h"
|
---|
25 | #include "touch/entry.h"
|
---|
26 | #include "ls/entry.h"
|
---|
27 | #include "mount/entry.h"
|
---|
28 |
|
---|
29 | /* Each .def function fills the module_t struct with the individual name, entry
|
---|
30 | * point, help entry point, etc. You can use config.h to control what modules
|
---|
31 | * are loaded based on what libraries exist on the system. */
|
---|
32 |
|
---|
33 | module_t modules[] = {
|
---|
34 | #include "help/help.def"
|
---|
35 | #include "quit/quit.def"
|
---|
36 | #include "mkdir/mkdir.def"
|
---|
37 | #include "rm/rm.def"
|
---|
38 | #include "cat/cat.def"
|
---|
39 | #include "touch/touch.def"
|
---|
40 | #include "ls/ls.def"
|
---|
41 | #include "mount/mount.def"
|
---|
42 | {NULL, NULL, NULL, NULL}
|
---|
43 | };
|
---|
44 |
|
---|
45 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.