summaryrefslogtreecommitdiffstats
path: root/flash.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'flash.hpp')
-rw-r--r--flash.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/flash.hpp b/flash.hpp
new file mode 100644
index 0000000..470d99c
--- /dev/null
+++ b/flash.hpp
@@ -0,0 +1,29 @@
+#pragma once
+
+#include <sdbusplus/bus.hpp>
+
+namespace phosphor
+{
+namespace software
+{
+namespace updater
+{
+
+/**
+ * @class Flash
+ * @brief Contains flash management functions.
+ * @details The software class that contains functions to interact
+ * with the flash.
+ */
+class Flash
+{
+ public:
+ /**
+ * @brief Writes the image file(s) to flash
+ */
+ virtual void flashWrite() = 0;
+};
+
+} // namespace updater
+} // namespace software
+} // namespace phosphor
OpenPOWER on IntegriCloud