Don't bother tracing some elem sets yet (bug 561939, r=gal).
[mozilla-central.git] / modules / lib7z / 7zLib.h
blob1924d85c02832c6cbe0bf0caedb26e360fa18daf
1 /* -*- Mode: C++; c-basic-offset: 2; tab-width: 8; indent-tabs-mode: nil; -*- */
2 /*****************************************************************************
4 * This 7z Library is based the 7z Client and 7z Standalone Extracting Plugin
5 * code from the LZMA SDK.
6 * It is in the public domain (see http://www.7-zip.org/sdk.html).
8 * Any copyright in these files held by contributors to the Mozilla Project is
9 * also dedicated to the Public Domain.
10 * http://creativecommons.org/licenses/publicdomain/
12 * Contributor(s):
13 * Alex Pakhotin <alexp@mozilla.com>
15 *****************************************************************************/
17 #ifndef __7ZLIB_H
18 #define __7ZLIB_H
20 #define SZ_OK 0
21 #define SZ_ERROR_DATA 1
22 #define SZ_ERROR_PARAM 5
23 #define SZ_ERROR_FAIL 11
24 #define SZ_ERROR_NO_ARCHIVE 17
26 const WCHAR* GetExtractorError();
28 typedef void SzExtractProgressCallback(int nPercentComplete);
30 /**
31 * Extract 7z-archive
33 int SzExtract(const WCHAR *archiveName,
34 const WCHAR *fileToExtract, const WCHAR *outputDir,
35 SzExtractProgressCallback *progressCallback);
37 int SzExtractSfx(const WCHAR *archiveName, DWORD sfxStubSize,
38 const WCHAR *fileToExtract, const WCHAR *outputDir,
39 SzExtractProgressCallback *progressCallback);
41 #endif // __7ZLIB_H