]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEditorTypes.h
ShellPkg: Apply uncrustify changes
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / HexEdit / HexEditorTypes.h
index 404914eb4ba6c1c13640500f715b316035c5cd68..63a1d549659b6bff9c3e0d844cd4c4999b88285d 100644 (file)
 \r
 #define EFI_EDITOR_LINE_LIST  SIGNATURE_32 ('e', 'e', 'l', 'l')\r
 \r
-#define ASCII_POSITION        ((0x10 * 3) + 12)\r
-\r
+#define ASCII_POSITION  ((0x10 * 3) + 12)\r
 \r
 typedef struct {\r
-  UINTN Row;\r
-  UINTN Column;\r
+  UINTN    Row;\r
+  UINTN    Column;\r
 } HEFI_EDITOR_POSITION;\r
 \r
 typedef\r
@@ -29,92 +28,90 @@ EFI_STATUS
   );\r
 \r
 typedef struct {\r
-  CHAR16                  Name[50];\r
-  CHAR16                  Key[3];\r
-  HEFI_MENU_ITEM_FUNCTION Function;\r
+  CHAR16                     Name[50];\r
+  CHAR16                     Key[3];\r
+  HEFI_MENU_ITEM_FUNCTION    Function;\r
 } HMENU_ITEMS;\r
 \r
 typedef struct _HEFI_EDITOR_LINE {\r
-  UINTN           Signature;\r
-  UINT8           Buffer[0x10];\r
-  UINTN           Size;                             // unit is Unicode\r
-  LIST_ENTRY  Link;\r
+  UINTN         Signature;\r
+  UINT8         Buffer[0x10];\r
+  UINTN         Size;                               // unit is Unicode\r
+  LIST_ENTRY    Link;\r
 } HEFI_EDITOR_LINE;\r
 \r
 typedef struct _HEFI_EDITOR_MENU_ITEM {\r
-  CHAR16                  NameToken;\r
-  CHAR16                  FunctionKeyToken;\r
-  HEFI_MENU_ITEM_FUNCTION Function;\r
+  CHAR16                     NameToken;\r
+  CHAR16                     FunctionKeyToken;\r
+  HEFI_MENU_ITEM_FUNCTION    Function;\r
 } HEFI_EDITOR_MENU_ITEM;\r
 \r
 typedef struct {\r
-  UINT32  Foreground : 4;\r
-  UINT32  Background : 4;\r
+  UINT32    Foreground : 4;\r
+  UINT32    Background : 4;\r
 } HEFI_EDITOR_COLOR_ATTRIBUTES;\r
 \r
 typedef union {\r
-  HEFI_EDITOR_COLOR_ATTRIBUTES  Colors;\r
-  UINTN                         Data;\r
+  HEFI_EDITOR_COLOR_ATTRIBUTES    Colors;\r
+  UINTN                           Data;\r
 } HEFI_EDITOR_COLOR_UNION;\r
 \r
 typedef struct {\r
-  UINTN Columns;\r
-  UINTN Rows;\r
+  UINTN    Columns;\r
+  UINTN    Rows;\r
 } HEFI_EDITOR_TEXT_MODE;\r
 \r
-\r
 typedef struct {\r
-  CHAR16  *Name;\r
+  CHAR16    *Name;\r
 \r
-  UINTN   BlockSize;\r
-  UINTN   Size;\r
-  UINTN   Offset;\r
+  UINTN     BlockSize;\r
+  UINTN     Size;\r
+  UINTN     Offset;\r
 } HEFI_EDITOR_DISK_IMAGE;\r
 \r
 typedef struct {\r
-  EFI_CPU_IO2_PROTOCOL *IoFncs;\r
-  UINTN                Offset;\r
-  UINTN                Size;\r
+  EFI_CPU_IO2_PROTOCOL    *IoFncs;\r
+  UINTN                   Offset;\r
+  UINTN                   Size;\r
 } HEFI_EDITOR_MEM_IMAGE;\r
 \r
 typedef struct {\r
-  CHAR16  *FileName;\r
-  UINTN   Size;                                     // file size\r
-  BOOLEAN ReadOnly;                                 // file is read-only or not\r
+  CHAR16     *FileName;\r
+  UINTN      Size;                                  // file size\r
+  BOOLEAN    ReadOnly;                              // file is read-only or not\r
 } HEFI_EDITOR_FILE_IMAGE;\r
 \r
 typedef struct {\r
-  LIST_ENTRY                      *ListHead;        // list head of lines\r
-  HEFI_EDITOR_LINE                *Lines;           // lines of current file\r
-  UINTN                           NumLines;         // number of lines\r
-  HEFI_EDITOR_LINE                *CurrentLine;     // current line cursor is at\r
-  HEFI_EDITOR_POSITION            DisplayPosition;  // cursor position in screen\r
-  HEFI_EDITOR_POSITION            MousePosition;    // mouse position in screen\r
-  HEFI_EDITOR_POSITION            BufferPosition;   // cursor position in buffer\r
-  UINTN                           LowVisibleRow;    // the lowest visible row of file position\r
-  BOOLEAN                         HighBits;         // cursor is at the high4 bits or low4 bits\r
-  BOOLEAN                         Modified;         // BUFFER is modified or not\r
-  EDIT_FILE_TYPE                  BufferType;\r
-\r
-  HEFI_EDITOR_FILE_IMAGE          *FileImage;\r
-  HEFI_EDITOR_DISK_IMAGE          *DiskImage;\r
-  HEFI_EDITOR_MEM_IMAGE           *MemImage;\r
-\r
+  LIST_ENTRY                *ListHead;              // list head of lines\r
+  HEFI_EDITOR_LINE          *Lines;                 // lines of current file\r
+  UINTN                     NumLines;               // number of lines\r
+  HEFI_EDITOR_LINE          *CurrentLine;           // current line cursor is at\r
+  HEFI_EDITOR_POSITION      DisplayPosition;        // cursor position in screen\r
+  HEFI_EDITOR_POSITION      MousePosition;          // mouse position in screen\r
+  HEFI_EDITOR_POSITION      BufferPosition;         // cursor position in buffer\r
+  UINTN                     LowVisibleRow;          // the lowest visible row of file position\r
+  BOOLEAN                   HighBits;               // cursor is at the high4 bits or low4 bits\r
+  BOOLEAN                   Modified;               // BUFFER is modified or not\r
+  EDIT_FILE_TYPE            BufferType;\r
+\r
+  HEFI_EDITOR_FILE_IMAGE    *FileImage;\r
+  HEFI_EDITOR_DISK_IMAGE    *DiskImage;\r
+  HEFI_EDITOR_MEM_IMAGE     *MemImage;\r
 } HEFI_EDITOR_BUFFER_IMAGE;\r
 \r
 typedef struct {\r
-  HEFI_EDITOR_BUFFER_IMAGE          *BufferImage;\r
-\r
-  HEFI_EDITOR_COLOR_UNION           ColorAttributes;\r
-  HEFI_EDITOR_POSITION              ScreenSize;           // row number and column number\r
-  EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TextInputEx;\r
-  BOOLEAN                           MouseSupported;\r
-  EFI_SIMPLE_POINTER_PROTOCOL       *MouseInterface;\r
-  INT32                             MouseAccumulatorX;\r
-  INT32                             MouseAccumulatorY;\r
-\r
-  UINTN                             SelectStart;          // starting from 1\r
-  UINTN                             SelectEnd;            // starting from 1\r
+  HEFI_EDITOR_BUFFER_IMAGE             *BufferImage;\r
+\r
+  HEFI_EDITOR_COLOR_UNION              ColorAttributes;\r
+  HEFI_EDITOR_POSITION                 ScreenSize;        // row number and column number\r
+  EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL    *TextInputEx;\r
+  BOOLEAN                              MouseSupported;\r
+  EFI_SIMPLE_POINTER_PROTOCOL          *MouseInterface;\r
+  INT32                                MouseAccumulatorX;\r
+  INT32                                MouseAccumulatorY;\r
+\r
+  UINTN                                SelectStart;       // starting from 1\r
+  UINTN                                SelectEnd;         // starting from 1\r
 } HEFI_EDITOR_GLOBAL_EDITOR;\r
 \r
 #endif\r