Subversion Repositories HelenOS

Rev

Rev 4377 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4377 Rev 4692
1
#ifndef MODULES_H
1
#ifndef MODULES_H
2
#define MODULES_H
2
#define MODULES_H
3
 
3
 
4
/* Each built in function has two files, one being an entry.h file which
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
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
6
 * which fills the modules[] array according to the cmd_t structure
7
 * defined in cmds.h.
7
 * defined in cmds.h.
8
 *
8
 *
9
 * To add or remove a module, just make a new directory in cmds/modules
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.
10
 * for it and copy the 'show' example for basics, then include it here.
11
 * (or reverse the process to remove one)
11
 * (or reverse the process to remove one)
12
 *
12
 *
13
 * NOTE: See module_ aliases.h as well, this is where aliases (commands that
13
 * NOTE: See module_ aliases.h as well, this is where aliases (commands that
14
 * share an entry point with others) are indexed */
14
 * share an entry point with others) are indexed */
15
 
15
 
16
#include "config.h"
16
#include "config.h"
17
 
17
 
18
/* Prototypes for each module's entry (help/exec) points */
18
/* Prototypes for each module's entry (help/exec) points */
19
 
19
 
20
#include "help/entry.h"
20
#include "help/entry.h"
21
#include "mkdir/entry.h"
21
#include "mkdir/entry.h"
22
#include "rm/entry.h"
22
#include "rm/entry.h"
-
 
23
#include "bdd/entry.h"
23
#include "cat/entry.h"
24
#include "cat/entry.h"
24
#include "touch/entry.h"
25
#include "touch/entry.h"
25
#include "ls/entry.h"
26
#include "ls/entry.h"
26
#include "pwd/entry.h"
27
#include "pwd/entry.h"
27
#include "sleep/entry.h"
28
#include "sleep/entry.h"
28
#include "cp/entry.h"
29
#include "cp/entry.h"
29
#include "mv/entry.h"
30
#include "mv/entry.h"
30
#include "mount/entry.h"
31
#include "mount/entry.h"
31
#include "kcon/entry.h"
32
#include "kcon/entry.h"
32
 
33
 
33
/* Each .def function fills the module_t struct with the individual name, entry
34
/* Each .def function fills the module_t struct with the individual name, entry
34
 * point, help entry point, etc. You can use config.h to control what modules
35
 * point, help entry point, etc. You can use config.h to control what modules
35
 * are loaded based on what libraries exist on the system. */
36
 * are loaded based on what libraries exist on the system. */
36
 
37
 
37
module_t modules[] = {
38
module_t modules[] = {
38
#include "help/help_def.h"
39
#include "help/help_def.h"
39
#include "mkdir/mkdir_def.h"
40
#include "mkdir/mkdir_def.h"
40
#include "rm/rm_def.h"
41
#include "rm/rm_def.h"
-
 
42
#include "bdd/bdd_def.h"
41
#include "cat/cat_def.h"
43
#include "cat/cat_def.h"
42
#include "touch/touch_def.h"
44
#include "touch/touch_def.h"
43
#include "ls/ls_def.h"
45
#include "ls/ls_def.h"
44
#include "pwd/pwd_def.h"
46
#include "pwd/pwd_def.h"
45
#include "sleep/sleep_def.h"
47
#include "sleep/sleep_def.h"
46
#include "cp/cp_def.h"
48
#include "cp/cp_def.h"
47
#include "mv/mv_def.h"
49
#include "mv/mv_def.h"
48
#include "mount/mount_def.h"
50
#include "mount/mount_def.h"
49
#include "kcon/kcon_def.h"
51
#include "kcon/kcon_def.h"
50
 
52
 
51
    {NULL, NULL, NULL, NULL}
53
    {NULL, NULL, NULL, NULL}
52
};
54
};
53
 
55
 
54
#endif
56
#endif
55
 
57