blob: 9b0953b12b4637ecbd5a8d6c7c96497de2aff95c [file] [log] [blame]
// Copyright 2015 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef INSTALLER_NAND_PARTITION_H_
#define INSTALLER_NAND_PARTITION_H_
#include <inttypes.h>
#include <string>
#include <base/files/file_path.h>
namespace brillo {
namespace installer {
// Remove the partition numbered |partno| from |dev|.
bool RemoveNandPartition(const base::FilePath& dev, int partno);
// Add a partition to |dev|, starting from |offset|, for |length| bytes.
bool AddNandPartition(const base::FilePath& dev,
int partno,
uint64_t offset,
uint64_t length);
} // namespace installer
} // namespace brillo
#endif // INSTALLER_NAND_PARTITION_H_