CommandLineProc:
TYPE ~
PROC [cmdLine: CStrings.CString, putProc: PutProc, data:
REF]
RETURNS [result:
REF];
Called with command line, should send output to putProc and return command result.
RegisterWithPCRCommandLoop:
PROC [proc: CommandLineProc, data:
REF, pcrName, replacementName, helpMsg: CStrings.CString]
RETURNS [
INT] ~
TRUSTED
MACHINE
CODE { "PCRCmdGlue$RegisterWithPCRCommandLoop" };
Register proc as a PCR command.
When user types command named pcrName at PCR command loop, the pcrName and all trailing spaces are replaced by replacementName, and the resulting string passed to proc for execution. (Note: in the normal case, this means replacementName should end with a space!).
A nonzero result indicates an error.