summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-06-27 05:26:03 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-06-27 05:26:03 +0000
commitc96769e54d649b27f5bb778ed3375c60cdebfe18 (patch)
tree5d98edbd12fd4c49f40f0f668d4c9f3ad9cb56f3
parent10160456368b728b172f485fce202d1e10f6ee81 (diff)
downloadedk2-platforms-c96769e54d649b27f5bb778ed3375c60cdebfe18.tar.xz
Add new Library Class: CustomDecompressLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2771 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdePkg/Include/Library/CustomDecompressLib.h42
-rw-r--r--MdePkg/MdePkg.dec2
-rw-r--r--MdePkg/MdePkg.nspd4
3 files changed, 47 insertions, 1 deletions
diff --git a/MdePkg/Include/Library/CustomDecompressLib.h b/MdePkg/Include/Library/CustomDecompressLib.h
new file mode 100644
index 0000000000..6e43e3a154
--- /dev/null
+++ b/MdePkg/Include/Library/CustomDecompressLib.h
@@ -0,0 +1,42 @@
+/*++
+
+Copyright (c) 2007, Intel Corporation
+All rights reserved. This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution. The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+Module Name:
+
+ CustomDecompressLib.h
+
+Abstract:
+
+ Custom Decompress Functions
+
+--*/
+
+#ifndef __CUSTOM_DECPOMPRESS_LIB_H__
+#define __CUSTOM_DECPOMPRESS_LIB_H__
+
+RETURN_STATUS
+EFIAPI
+CustomDecompressGetInfo (
+ IN CONST VOID *Source,
+ IN UINT32 SourceSize,
+ OUT UINT32 *DestinationSize,
+ OUT UINT32 *ScratchSize
+ );
+
+RETURN_STATUS
+EFIAPI
+CustomDecompress (
+ IN CONST VOID *Source,
+ IN OUT VOID *Destination,
+ IN OUT VOID *Scratch
+ );
+
+#endif
diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec
index 98c0c7e5cd..90b49ac308 100644
--- a/MdePkg/MdePkg.dec
+++ b/MdePkg/MdePkg.dec
@@ -110,7 +110,7 @@
CacheMaintenanceLib|Include/Library/CacheMaintenanceLib.h
BaseMemoryLib|Include/Library/BaseMemoryLib.h
BaseLib|Include/Library/BaseLib.h
-
+ CustomDecompressLib|Include/Library/CustomDecompressLib.h
################################################################################
#
diff --git a/MdePkg/MdePkg.nspd b/MdePkg/MdePkg.nspd
index 4ce2a55d30..3ea086b166 100644
--- a/MdePkg/MdePkg.nspd
+++ b/MdePkg/MdePkg.nspd
@@ -194,6 +194,10 @@
<IncludeHeader>Include/Library/UsbLib.h</IncludeHeader>
<HelpText/>
</LibraryClass>
+ <LibraryClass Name="CustomDecompressLib">
+ <IncludeHeader>Include/Library/CustomDecompressLib.h</IncludeHeader>
+ <HelpText/>
+ </LibraryClass>
</LibraryClassDeclarations>
<MsaFiles>
<Filename>Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.msa</Filename>