]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/LzmaCompress/Sdk/C/LzFindMt.h
BaseTools LzmaCompress: Update LZMA to new 16.04 version
[mirror_edk2.git] / BaseTools / Source / C / LzmaCompress / Sdk / C / LzFindMt.h
index b7ead2d472f443bac162876b89af9e51bf89aa0a..46b6924ad72e2263bebe6794a70e18b3287a480a 100644 (file)
@@ -1,11 +1,13 @@
 /* LzFindMt.h -- multithreaded Match finder for LZ algorithms\r
-2008-10-04 : Igor Pavlov : Public domain */\r
+2015-05-03 : Igor Pavlov : Public domain */\r
 \r
-#ifndef __LZFINDMT_H\r
-#define __LZFINDMT_H\r
+#ifndef __LZ_FIND_MT_H\r
+#define __LZ_FIND_MT_H\r
 \r
-#include "Threads.h"\r
 #include "LzFind.h"\r
+#include "Threads.h"\r
+\r
+EXTERN_C_BEGIN\r
 \r
 #define kMtHashBlockSize (1 << 13)\r
 #define kMtHashNumBlocks (1 << 3)\r
@@ -73,7 +75,7 @@ typedef struct _CMatchFinderMt
   UInt32 matchMaxLen;\r
   UInt32 numHashBytes;\r
   UInt32 pos;\r
-  Byte *buffer;\r
+  const Byte *buffer;\r
   UInt32 cyclicBufferPos;\r
   UInt32 cyclicBufferSize; /* it must be historySize + 1 */\r
   UInt32 cutValue;\r
@@ -94,4 +96,6 @@ SRes MatchFinderMt_Create(CMatchFinderMt *p, UInt32 historySize, UInt32 keepAddB
 void MatchFinderMt_CreateVTable(CMatchFinderMt *p, IMatchFinder *vTable);\r
 void MatchFinderMt_ReleaseStream(CMatchFinderMt *p);\r
 \r
+EXTERN_C_END\r
+\r
 #endif\r