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