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