]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/ShellDynamicCommand.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / ShellDynamicCommand.h
CommitLineData
e66e86ee
JC
1/** @file\r
2 EFI Shell Dynamic Command registration protocol\r
3\r
c011b6c9 4 (C) Copyright 2012-2014 Hewlett-Packard Development Company, L.P.<BR>\r
9095d37b 5 Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r
9344f092 6 SPDX-License-Identifier: BSD-2-Clause-Patent\r
e66e86ee
JC
7\r
8**/\r
9\r
51a09860
RN
10#ifndef __EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL_H__\r
11#define __EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL_H__\r
e66e86ee 12\r
51a09860
RN
13#include <Protocol/Shell.h>\r
14#include <Protocol/ShellParameters.h>\r
e66e86ee 15\r
b8a13d73 16// {3C7200E9-005F-4EA4-87DE-A3DFAC8A27C3}\r
e66e86ee
JC
17#define EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL_GUID \\r
18 { \\r
b8a13d73 19 0x3c7200e9, 0x005f, 0x4ea4, { 0x87, 0xde, 0xa3, 0xdf, 0xac, 0x8a, 0x27, 0xc3 } \\r
e66e86ee
JC
20 }\r
21\r
e66e86ee
JC
22//\r
23// Define for forward reference.\r
24//\r
25typedef struct _EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL;\r
26\r
e66e86ee
JC
27/**\r
28 This is the shell command handler function pointer callback type. This\r
29 function handles the command when it is invoked in the shell.\r
30\r
31 @param[in] This The instance of the EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL.\r
32 @param[in] SystemTable The pointer to the system table.\r
33 @param[in] ShellParameters The parameters associated with the command.\r
34 @param[in] Shell The instance of the shell protocol used in the context\r
35 of processing this command.\r
36\r
37 @return EFI_SUCCESS the operation was sucessful\r
38 @return other the operation failed.\r
39**/\r
40typedef\r
41SHELL_STATUS\r
2f88bd3a 42(EFIAPI *SHELL_COMMAND_HANDLER)(\r
e66e86ee
JC
43 IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *This,\r
44 IN EFI_SYSTEM_TABLE *SystemTable,\r
45 IN EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters,\r
46 IN EFI_SHELL_PROTOCOL *Shell\r
47 );\r
48\r
49/**\r
50 This is the command help handler function pointer callback type. This\r
51 function is responsible for displaying help information for the associated\r
52 command.\r
53\r
54 @param[in] This The instance of the EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL.\r
55 @param[in] Language The pointer to the language string to use.\r
56\r
57 @return string Pool allocated help string, must be freed by caller\r
58**/\r
59typedef\r
2f88bd3a
MK
60CHAR16 *\r
61(EFIAPI *SHELL_COMMAND_GETHELP)(\r
e66e86ee
JC
62 IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *This,\r
63 IN CONST CHAR8 *Language\r
64 );\r
65\r
66/// EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL protocol structure.\r
e7a8edfd 67struct _EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL {\r
2f88bd3a
MK
68 CONST CHAR16 *CommandName;\r
69 SHELL_COMMAND_HANDLER Handler;\r
70 SHELL_COMMAND_GETHELP GetHelp;\r
e7a8edfd 71};\r
e66e86ee 72\r
2f88bd3a 73extern EFI_GUID gEfiShellDynamicCommandProtocolGuid;\r
e66e86ee
JC
74\r
75#endif\r