]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/Common/BinderFuncs.h
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / C / Common / BinderFuncs.h
1 /** @file
2 Prototypes for binder functions that allow common code to be written which then
3 links to implementation of these functions which is appropriate for the specific
4 environment that they are running under.
5
6 Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8
9 **/
10
11 #ifndef BinderFuncs_h_INCLUDED
12 #define BinderFuncs_h_INCLUDED
13
14 #include "Common/UefiBaseTypes.h"
15
16 //
17 // Binder Function Prototypes
18 //
19 // These binding functions must be implemented externally as appropriate for
20 // the environment that the code will be running under.
21 //
22
23 VOID *
24 CommonLibBinderAllocate (
25 IN UINTN Size
26 );
27
28 VOID
29 CommonLibBinderFree (
30 IN VOID *Pointer
31 );
32
33 VOID
34 CommonLibBinderCopyMem (
35 IN VOID *Destination,
36 IN VOID *Source,
37 IN UINTN Length
38 );
39
40 VOID
41 CommonLibBinderSetMem (
42 IN VOID *Destination,
43 IN UINTN Length,
44 IN UINT8 Value
45 );
46
47 INTN
48 CommonLibBinderCompareMem (
49 IN VOID *MemOne,
50 IN VOID *MemTwo,
51 IN UINTN Length
52 );
53
54 BOOLEAN
55 CommonLibBinderCompareGuid (
56 IN EFI_GUID *Guid1,
57 IN EFI_GUID *Guid2
58 );
59
60 #endif // #ifndef CommonLibs_h_INCLUDED
61