-
Notifications
You must be signed in to change notification settings - Fork 6
/
cmd.h
37 lines (32 loc) · 1.23 KB
/
cmd.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
/***************************************************************************
*
* Copyright (c) 1997, 1998 Timpanogas Research Group, Inc. All Rights
* Reserved.
*
* AUTHOR : Jeff V. Merkey
* FILE : CMD.H
* DESCRIP : Installable Console Command Parser for MANOS v1.0
* DATE : July 27, 1998
*
*
***************************************************************************/
#include "types.h"
typedef struct _CONSOLE_PARSER
{
struct _CONSOLE_PARSER *consoleNext;
struct _CONSOLE_PARSER *consolePrior;
LONG (*ConsoleCommandParser)(SCREEN *screen, BYTE *commandLine,
struct _CONSOLE_PARSER *parser);
LONG (*ConsoleCommandParserHelp)(SCREEN *screen, BYTE *commandLine,
struct _CONSOLE_PARSER *parser);
LONG parserFlags;
BYTE *commandName;
LONG commandNameLength;
LONG supervisorCommand;
BYTE *shortHelp;
void *moduleContext;
} CONSOLE_PARSER;
extern LONG ConsoleParserRoutine(SCREEN *screen, BYTE *command, BYTE *commandLine);
extern LONG ConsoleParserHelpRoutine(SCREEN *screen, BYTE *command, BYTE *commandLine);
extern LONG AddConsoleCommandParser(CONSOLE_PARSER *parser);
extern LONG RemoveConsoleCommandParser(CONSOLE_PARSER *parser);