lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since a716a75 was 0cb2d72, checked in by Jakub Jermar <jakub@…>, 15 years ago |
Add dummy unmount command to bdsh.
|
-
Property mode
set to
100644
|
File size:
1.7 KB
|
Rev | Line | |
---|
[216d6fc] | 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 "mkdir/entry.h"
|
---|
[336d2faa] | 22 | #include "mkfile/entry.h"
|
---|
[216d6fc] | 23 | #include "rm/entry.h"
|
---|
[27fd651] | 24 | #include "bdd/entry.h"
|
---|
[216d6fc] | 25 | #include "cat/entry.h"
|
---|
| 26 | #include "touch/entry.h"
|
---|
| 27 | #include "ls/entry.h"
|
---|
[69145dae] | 28 | #include "pwd/entry.h"
|
---|
[39463ff] | 29 | #include "sleep/entry.h"
|
---|
| 30 | #include "cp/entry.h"
|
---|
[046f342] | 31 | #include "mv/entry.h"
|
---|
[d4a172b] | 32 | #include "mount/entry.h"
|
---|
[0cb2d72] | 33 | #include "unmount/entry.h"
|
---|
[3fe00ee] | 34 | #include "kcon/entry.h"
|
---|
[216d6fc] | 35 |
|
---|
| 36 | /* Each .def function fills the module_t struct with the individual name, entry
|
---|
| 37 | * point, help entry point, etc. You can use config.h to control what modules
|
---|
| 38 | * are loaded based on what libraries exist on the system. */
|
---|
| 39 |
|
---|
| 40 | module_t modules[] = {
|
---|
[a56f4b2] | 41 | #include "help/help_def.h"
|
---|
| 42 | #include "mkdir/mkdir_def.h"
|
---|
[336d2faa] | 43 | #include "mkfile/mkfile_def.h"
|
---|
[a56f4b2] | 44 | #include "rm/rm_def.h"
|
---|
[27fd651] | 45 | #include "bdd/bdd_def.h"
|
---|
[a56f4b2] | 46 | #include "cat/cat_def.h"
|
---|
| 47 | #include "touch/touch_def.h"
|
---|
| 48 | #include "ls/ls_def.h"
|
---|
| 49 | #include "pwd/pwd_def.h"
|
---|
[39463ff] | 50 | #include "sleep/sleep_def.h"
|
---|
| 51 | #include "cp/cp_def.h"
|
---|
[046f342] | 52 | #include "mv/mv_def.h"
|
---|
[d4a172b] | 53 | #include "mount/mount_def.h"
|
---|
[0cb2d72] | 54 | #include "unmount/unmount_def.h"
|
---|
[3fe00ee] | 55 | #include "kcon/kcon_def.h"
|
---|
[d4a172b] | 56 |
|
---|
[216d6fc] | 57 | {NULL, NULL, NULL, NULL}
|
---|
| 58 | };
|
---|
| 59 |
|
---|
| 60 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.