-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmdDispatch.h
37 lines (32 loc) · 1018 Bytes
/
cmdDispatch.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef CMD_DISPATCH_H
#define CMD_DISPATCH_H
typedef struct Commands_s {
const char *Name;
int MinParams;
const char *ShortHelp;
const char *FullHelp;
void (*Func)(int argc, char **argv);
struct Commands_s *Dispatch;
} Commands_t;
void cmdCommandHelp(Commands_t *table, int cmd);
void cmdDispatchHelp(Commands_t *table, int argc, char **argv);
void cmdDispatch(Commands_t *table, int argc, char **argv);
void dispatchInit();
void execInit();
int execHandler(char *filename);
int execLoop();
void execcmd(int argc, char **argv);
void showcmd(int argc, char **argv);
void scsicmd(int argc, char **argv);
void filescmd(int argc, char **argv);
void sdhccmd(int argc, char **argv);
void luncmd(int argc, char **argv);
void debugcmd(int argc, char **argv);
extern Commands_t ShowCommands[];
extern Commands_t SCSICommands[];
extern Commands_t FilesCommands[];
extern Commands_t SDHCCommands[];
extern Commands_t LUNCommands[];
extern Commands_t DebugCommands[];
extern Commands_t GlobalCommands[];
#endif