]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/Common/BinderFuncs.h
Sync EDKII BaseTools to BaseTools project r1971
[mirror_edk2.git] / BaseTools / Source / C / Common / BinderFuncs.h
1 /** @file
2
3 Copyright (c) 1999 - 2008, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 BinderFuncs.h
15
16 Abstract:
17
18 Prototypes for binder functions that allow common code to be
19 written which then links to implementation of these functions
20 which is appropriate for the specific environment that they
21 are running under.
22
23 **/
24
25 #ifndef BinderFuncs_h_INCLUDED
26 #define BinderFuncs_h_INCLUDED
27
28 #include "Common/UefiBaseTypes.h"
29
30 //
31 // Binder Function Prototypes
32 //
33 // These binding functions must be implemented externally as appropriate for
34 // the environment that the code will be running under.
35 //
36
37 VOID *
38 CommonLibBinderAllocate (
39 IN UINTN Size
40 );
41
42 VOID
43 CommonLibBinderFree (
44 IN VOID *Pointer
45 );
46
47 VOID
48 CommonLibBinderCopyMem (
49 IN VOID *Destination,
50 IN VOID *Source,
51 IN UINTN Length
52 );
53
54 VOID
55 CommonLibBinderSetMem (
56 IN VOID *Destination,
57 IN UINTN Length,
58 IN UINT8 Value
59 );
60
61 INTN
62 CommonLibBinderCompareMem (
63 IN VOID *MemOne,
64 IN VOID *MemTwo,
65 IN UINTN Length
66 );
67
68 BOOLEAN
69 CommonLibBinderCompareGuid (
70 IN EFI_GUID *Guid1,
71 IN EFI_GUID *Guid2
72 );
73
74 #endif // #ifndef CommonLibs_h_INCLUDED
75