summaryrefslogtreecommitdiff
path: root/src/system_fsm/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/system_fsm/include')
-rw-r--r--src/system_fsm/include/system_events.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/system_fsm/include/system_events.hpp b/src/system_fsm/include/system_events.hpp
index 38929616..ec202c69 100644
--- a/src/system_fsm/include/system_events.hpp
+++ b/src/system_fsm/include/system_events.hpp
@@ -6,6 +6,9 @@
#pragma once
+#include <memory>
+
+#include "database.hpp"
#include "tinyfsm.hpp"
namespace system_fsm {
@@ -38,7 +41,9 @@ struct StorageUnmountRequested : tinyfsm::Event {};
/*
* Sent by SysState when the system storage has been successfully mounted.
*/
-struct StorageMounted : tinyfsm::Event {};
+struct StorageMounted : tinyfsm::Event {
+ std::weak_ptr<database::Database> db;
+};
struct StorageError : tinyfsm::Event {};