modules.h

00001 #ifndef MODULES_H
00002 #define MODULES_H
00003 
00004 /* Each built in function has two files, one being an entry.h file which
00005  * prototypes the run/help entry functions, the other being a .def file
00006  * which fills the modules[] array according to the cmd_t structure
00007  * defined in cmds.h.
00008  *
00009  * To add or remove a module, just make a new directory in cmds/modules
00010  * for it and copy the 'show' example for basics, then include it here.
00011  * (or reverse the process to remove one)
00012  *
00013  * NOTE: See module_ aliases.h as well, this is where aliases (commands that
00014  * share an entry point with others) are indexed */
00015 
00016 #include "config.h"
00017 
00018 /* Prototypes for each module's entry (help/exec) points */
00019 
00020 #include "help/entry.h"
00021 #include "mkdir/entry.h"
00022 #include "mkfile/entry.h"
00023 #include "rm/entry.h"
00024 #include "bdd/entry.h"
00025 #include "cat/entry.h"
00026 #include "touch/entry.h"
00027 #include "ls/entry.h"
00028 #include "pwd/entry.h"
00029 #include "sleep/entry.h"
00030 #include "cp/entry.h"
00031 #include "mv/entry.h"
00032 #include "mount/entry.h"
00033 #include "unmount/entry.h"
00034 #include "kcon/entry.h"
00035 
00036 /* Each .def function fills the module_t struct with the individual name, entry
00037  * point, help entry point, etc. You can use config.h to control what modules
00038  * are loaded based on what libraries exist on the system. */
00039 
00040 module_t modules[] = {
00041 #include "help/help_def.h"
00042 #include "mkdir/mkdir_def.h"
00043 #include "mkfile/mkfile_def.h"
00044 #include "rm/rm_def.h"
00045 #include "bdd/bdd_def.h"
00046 #include "cat/cat_def.h"
00047 #include "touch/touch_def.h"
00048 #include "ls/ls_def.h"
00049 #include "pwd/pwd_def.h"
00050 #include "sleep/sleep_def.h"
00051 #include "cp/cp_def.h"
00052 #include "mv/mv_def.h"
00053 #include "mount/mount_def.h"
00054 #include "unmount/unmount_def.h"
00055 #include "kcon/kcon_def.h"
00056 
00057         {NULL, NULL, NULL, NULL}
00058 };
00059 
00060 #endif

Generated on Thu Jun 2 07:45:41 2011 for HelenOS/USB by  doxygen 1.4.7