blob: f3627fd8bea586c8035a054d8a477143541f7fa7 [file] [log] [blame]
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_
#define CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_
// arraysize borrowed from basictypes.h
template <typename T, size_t N>
char (&ArraySizeHelper(T (&array)[N]))[N];
#define arraysize(array) (sizeof(ArraySizeHelper(array)))
namespace mini_installer {
// Same as the tool, expand.exe. Decompresses a file that was compressed
// using Microsoft's MSCF compression algorithm.
// |source| is the full path of the file to decompress and |destination|
// is the full path of the target file.
bool Expand(const wchar_t* source, const wchar_t* destination);
} // namespace mini_installer
#endif // CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_