blob: fef523036ab190c464024f0ebb5c260137372cce [file] [log] [blame]
// Copyright 2018 The Chromium OS 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 MODEMFWD_FIRMWARE_FILE_INFO_H_
#define MODEMFWD_FIRMWARE_FILE_INFO_H_
#include <string>
#include <base/files/file_path.h>
namespace modemfwd {
struct FirmwareFileInfo {
enum class Compression {
NONE,
XZ,
};
FirmwareFileInfo() : compression(Compression::NONE) {}
FirmwareFileInfo(const base::FilePath& firmware_path,
const std::string& version)
: FirmwareFileInfo(firmware_path, version, Compression::NONE) {}
FirmwareFileInfo(const base::FilePath& firmware_path,
const std::string& version,
Compression compression)
: firmware_path(firmware_path),
version(version),
compression(compression) {}
base::FilePath firmware_path;
std::string version;
Compression compression;
};
} // namespace modemfwd
#endif // MODEMFWD_FIRMWARE_FILE_INFO_H_