blob: 99dd9caad069fa1fa614af5f0644123c74635287 [file] [log] [blame]
#pragma once
#include "status.hpp"
namespace ipmi_flash
{
class UpdateInterface
{
public:
virtual ~UpdateInterface() = default;
/**
* Trigger the update mechanism.
*
* @return true if successfully started, false otherwise.
*/
virtual bool triggerUpdate() = 0;
/** Abort the update process. */
virtual void abortUpdate() = 0;
/** Check the current state of the update process. */
virtual UpdateStatus status() = 0;
};
} // namespace ipmi_flash