]>
Commit | Line | Data |
---|---|---|
632820d1 | 1 | /** @file\r |
2 | Declares generic editor helper functions.\r | |
3 | \r | |
4 | Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef _LIB_MISC_H_\r | |
16 | #define _LIB_MISC_H_\r | |
17 | \r | |
18 | #include "TextEditorTypes.h"\r | |
19 | \r | |
20 | \r | |
21 | \r | |
22 | /**\r | |
23 | Free a EFI_EDITOR_LINE structure.\r | |
24 | \r | |
25 | @param Src The line structure to free.\r | |
26 | **/\r | |
27 | VOID\r | |
632820d1 | 28 | LineFree (\r |
29 | IN EFI_EDITOR_LINE *Src\r | |
30 | );\r | |
31 | \r | |
32 | /**\r | |
33 | Duplicate a EFI_EDITOR_LINE structure.\r | |
34 | \r | |
35 | @param Src The line structure to copy from.\r | |
36 | \r | |
37 | @retval NULL A memory allocation failed.\r | |
38 | @return a pointer to the newly allcoated line.\r | |
39 | **/\r | |
40 | EFI_EDITOR_LINE *\r | |
632820d1 | 41 | LineDup (\r |
42 | IN EFI_EDITOR_LINE *Src\r | |
43 | );\r | |
44 | \r | |
45 | \r | |
46 | \r | |
47 | \r | |
48 | \r | |
49 | \r | |
50 | #endif\r |