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