mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
[NTOS:HEADLESS]: Code formatting + s/tabs/spaces/
svn path=/trunk/; revision=60671
This commit is contained in:
parent
0fbb946f42
commit
c5b0cd477f
1 changed files with 115 additions and 102 deletions
|
@ -6,16 +6,16 @@
|
||||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
* PROGRAMMERS: ReactOS Portable Systems Group
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* INCLUDES ******************************************************************/
|
/* INCLUDES *******************************************************************/
|
||||||
|
|
||||||
#include <ntoskrnl.h>
|
#include <ntoskrnl.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS ********************************************************************/
|
||||||
|
|
||||||
PHEADLESS_GLOBALS HeadlessGlobals;
|
PHEADLESS_GLOBALS HeadlessGlobals;
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS ******************************************************************/
|
||||||
|
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
KIRQL
|
KIRQL
|
||||||
|
@ -290,7 +290,7 @@ HdlspDispatch(IN HEADLESS_CMD Command,
|
||||||
switch (Command)
|
switch (Command)
|
||||||
{
|
{
|
||||||
case HeadlessCmdEnableTerminal:
|
case HeadlessCmdEnableTerminal:
|
||||||
|
{
|
||||||
/* Make sure the caller passed valid data */
|
/* Make sure the caller passed valid data */
|
||||||
if (!(InputBuffer) ||
|
if (!(InputBuffer) ||
|
||||||
(InputBufferSize != sizeof(*EnableTerminal)))
|
(InputBufferSize != sizeof(*EnableTerminal)))
|
||||||
|
@ -304,12 +304,13 @@ HdlspDispatch(IN HEADLESS_CMD Command,
|
||||||
EnableTerminal = InputBuffer;
|
EnableTerminal = InputBuffer;
|
||||||
Status = HdlspEnableTerminal(EnableTerminal->Enable);
|
Status = HdlspEnableTerminal(EnableTerminal->Enable);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case HeadlessCmdCheckForReboot:
|
case HeadlessCmdCheckForReboot:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HeadlessCmdPutString:
|
case HeadlessCmdPutString:
|
||||||
|
{
|
||||||
/* Validate the existence of an input buffer */
|
/* Validate the existence of an input buffer */
|
||||||
if (!InputBuffer)
|
if (!InputBuffer)
|
||||||
{
|
{
|
||||||
|
@ -328,9 +329,10 @@ HdlspDispatch(IN HEADLESS_CMD Command,
|
||||||
/* Return success either way */
|
/* Return success either way */
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case HeadlessCmdClearDisplay:
|
case HeadlessCmdClearDisplay:
|
||||||
|
{
|
||||||
/* Send the VT100 clear screen command if the terminal is enabled */
|
/* Send the VT100 clear screen command if the terminal is enabled */
|
||||||
if (HeadlessGlobals->TerminalEnabled)
|
if (HeadlessGlobals->TerminalEnabled)
|
||||||
{
|
{
|
||||||
|
@ -340,6 +342,7 @@ HdlspDispatch(IN HEADLESS_CMD Command,
|
||||||
/* Return success either way */
|
/* Return success either way */
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case HeadlessCmdClearToEndOfDisplay:
|
case HeadlessCmdClearToEndOfDisplay:
|
||||||
break;
|
break;
|
||||||
|
@ -357,7 +360,7 @@ HdlspDispatch(IN HEADLESS_CMD Command,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HeadlessCmdGetByte:
|
case HeadlessCmdGetByte:
|
||||||
|
{
|
||||||
/* Make sure the caller passed valid data */
|
/* Make sure the caller passed valid data */
|
||||||
if (!(OutputBuffer) ||
|
if (!(OutputBuffer) ||
|
||||||
!(OutputBufferSize) ||
|
!(OutputBufferSize) ||
|
||||||
|
@ -394,6 +397,7 @@ HdlspDispatch(IN HEADLESS_CMD Command,
|
||||||
/* Return success either way */
|
/* Return success either way */
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case HeadlessCmdGetLine:
|
case HeadlessCmdGetLine:
|
||||||
break;
|
break;
|
||||||
|
@ -401,8 +405,9 @@ HdlspDispatch(IN HEADLESS_CMD Command,
|
||||||
break;
|
break;
|
||||||
case HeadlessCmdDoBugCheckProcessing:
|
case HeadlessCmdDoBugCheckProcessing:
|
||||||
break;
|
break;
|
||||||
case HeadlessCmdQueryInformation:
|
|
||||||
|
|
||||||
|
case HeadlessCmdQueryInformation:
|
||||||
|
{
|
||||||
/* Make sure the caller passed valid data */
|
/* Make sure the caller passed valid data */
|
||||||
if (!(OutputBuffer) ||
|
if (!(OutputBuffer) ||
|
||||||
!(OutputBufferSize) ||
|
!(OutputBufferSize) ||
|
||||||
|
@ -441,12 +446,15 @@ HdlspDispatch(IN HEADLESS_CMD Command,
|
||||||
/* All done */
|
/* All done */
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case HeadlessCmdAddLogEntry:
|
case HeadlessCmdAddLogEntry:
|
||||||
break;
|
break;
|
||||||
case HeadlessCmdDisplayLog:
|
case HeadlessCmdDisplayLog:
|
||||||
break;
|
break;
|
||||||
case HeadlessCmdSetBlueScreenData:
|
|
||||||
|
|
||||||
|
case HeadlessCmdSetBlueScreenData:
|
||||||
|
{
|
||||||
/* Validate the existence of an input buffer */
|
/* Validate the existence of an input buffer */
|
||||||
if (!InputBuffer)
|
if (!InputBuffer)
|
||||||
{
|
{
|
||||||
|
@ -458,12 +466,15 @@ HdlspDispatch(IN HEADLESS_CMD Command,
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case HeadlessCmdSendBlueScreenData:
|
case HeadlessCmdSendBlueScreenData:
|
||||||
break;
|
break;
|
||||||
case HeadlessCmdQueryGUID:
|
case HeadlessCmdQueryGUID:
|
||||||
break;
|
break;
|
||||||
case HeadlessCmdPutData:
|
|
||||||
|
|
||||||
|
case HeadlessCmdPutData:
|
||||||
|
{
|
||||||
/* Validate the existence of an input buffer */
|
/* Validate the existence of an input buffer */
|
||||||
if (!(InputBuffer) || !(InputBufferSize))
|
if (!(InputBuffer) || !(InputBufferSize))
|
||||||
{
|
{
|
||||||
|
@ -482,6 +493,7 @@ HdlspDispatch(IN HEADLESS_CMD Command,
|
||||||
/* Return success either way */
|
/* Return success either way */
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -532,6 +544,7 @@ HeadlessDispatch(IN HEADLESS_CMD Command,
|
||||||
|
|
||||||
RtlZeroMemory(OutputBuffer, *OutputBufferSize);
|
RtlZeroMemory(OutputBuffer, *OutputBufferSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue