]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecUefiSupport.h
MdeModulePkg/BrotliCustomDecompressLib: Make brotli a submodule
[mirror_edk2.git] / MdeModulePkg / Library / BrotliCustomDecompressLib / BrotliDecUefiSupport.h
diff --git a/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecUefiSupport.h b/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecUefiSupport.h
new file mode 100644 (file)
index 0000000..9f84347
--- /dev/null
@@ -0,0 +1,43 @@
+/** @file\r
+  BROTLI UEFI header file for definitions\r
+\r
+  Allows BROTLI code to build under UEFI (edk2) build environment\r
+\r
+  Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#ifndef __BROTLI_DECOMPRESS_UEFI_SUP_H__\r
+#define __BROTLI_DECOMPRESS_UEFI_SUP_H__\r
+\r
+#include <Library/BaseLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/DebugLib.h>\r
+#define memcpy                      CopyMem\r
+#define memmove                     CopyMem\r
+#define memset(dest,ch,count)       SetMem(dest,(UINTN)(count),(UINT8)(ch))\r
+#define malloc                      BrDummyMalloc\r
+#define free                        BrDummyFree\r
+\r
+typedef INT8     int8_t;\r
+typedef INT16    int16_t;\r
+typedef INT32    int32_t;\r
+typedef INT64    int64_t;\r
+typedef UINT8    uint8_t;\r
+typedef UINT16   uint16_t;\r
+typedef UINT32   uint32_t;\r
+typedef UINT64   uint64_t;\r
+typedef UINTN    size_t;\r
+\r
+VOID *\r
+BrDummyMalloc (\r
+  IN size_t   Size\r
+  );\r
+\r
+VOID\r
+BrDummyFree (\r
+  IN VOID *   Ptr\r
+  );\r
+\r
+#endif\r