/*
 * Copyright (C) 2018 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef _CHECKPOINT_H
#define _CHECKPOINT_H

#include <string>

namespace android {
namespace vold {

bool cp_startCheckpoint(int retry);

bool cp_commitChanges();

void cp_abortChanges();

bool cp_needRollback(const std::string& id);

bool cp_needsCheckpoint();

bool cp_prepareDriveForCheckpoint(const std::string& mountPoint);

bool cp_restoreCheckpoint(const std::string& mountPoint);

bool cp_markBootAttempt();

}  // namespace vold
}  // namespace android

#endif
