]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/Misc.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / HexEdit / Misc.h
CommitLineData
632820d1 1/** @file\r
2 Definitions for various line and string routines\r
3\r
ba0014b9 4 Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
56ba3746 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
632820d1 6\r
7**/\r
8\r
9#ifndef _LIB_MISC_H_\r
10#define _LIB_MISC_H_\r
11\r
12#include "HexEditor.h"\r
13\r
a1d4bfcc 14/**\r
15 Advance/Retreat lines.\r
632820d1 16\r
a1d4bfcc 17 @param[in] Count The line number to advance/retreat.\r
18 >0 : advance\r
ba0014b9 19 <0: retreat\r
a1d4bfcc 20\r
a048af3c 21 @retval NULL An error occurred.\r
a1d4bfcc 22 @return A pointer to the line after move.\r
23**/\r
24HEFI_EDITOR_LINE *\r
632820d1 25HMoveLine (\r
47d20b54 26 IN INTN Count\r
632820d1 27 );\r
28\r
a1d4bfcc 29/**\r
30 Advance/Retreat lines and set CurrentLine in BufferImage to it.\r
632820d1 31\r
a1d4bfcc 32 @param[in] Count The line number to advance/retreat.\r
33 >0 : advance\r
34 <0: retreat\r
632820d1 35\r
a048af3c 36 @retval NULL An error occurred.\r
a1d4bfcc 37 @return A pointer to the line after move.\r
38**/\r
39HEFI_EDITOR_LINE *\r
40HMoveCurrentLine (\r
47d20b54 41 IN INTN Count\r
632820d1 42 );\r
43\r
a1d4bfcc 44/**\r
45 Free all the lines in HBufferImage.\r
46 Fields affected:\r
47 Lines\r
48 CurrentLine\r
49 NumLines\r
ba0014b9 50 ListHead\r
632820d1 51\r
a1d4bfcc 52 @param[in] ListHead The list head.\r
53 @param[in] Lines The lines.\r
632820d1 54\r
a1d4bfcc 55 @retval EFI_SUCCESS The operation was successful.\r
56**/\r
632820d1 57EFI_STATUS\r
58HFreeLines (\r
47d20b54
MK
59 IN LIST_ENTRY *ListHead,\r
60 IN HEFI_EDITOR_LINE *Lines\r
632820d1 61 );\r
62\r
a1d4bfcc 63/**\r
64 Get the X information for the mouse.\r
65\r
66 @param[in] GuidX The change.\r
67\r
68 @return the new information.\r
69**/\r
632820d1 70INT32\r
71HGetTextX (\r
47d20b54 72 IN INT32 GuidX\r
a1d4bfcc 73 );\r
74\r
75/**\r
76 Get the Y information for the mouse.\r
77\r
78 @param[in] GuidY The change.\r
79\r
80 @return the new information.\r
81**/\r
632820d1 82INT32\r
83HGetTextY (\r
47d20b54 84 IN INT32 GuidY\r
632820d1 85 );\r
86\r
87#endif\r