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