99
1010#if __GNUC__ >= 11
1111
12- #include " KeyValueStorageBase .hpp"
12+ #include " KeyValueStorage .hpp"
1313
1414#include < functional>
1515
@@ -23,7 +23,7 @@ namespace cyphal::support
2323// / Stored registers that are not present in the registry will not be loaded.
2424// / The serialization format is simply the Cyphal DSDL.
2525// / In case of error, only part of the registers may be loaded and the registry will be left in an inconsistent state.
26- [[nodiscard]] inline std::optional<platform::storage::Error> load (const platform::storage::KeyValueStorageBase & kv,
26+ [[nodiscard]] inline std::optional<platform::storage::Error> load (const platform::storage::interface::KeyValueStorage & kv,
2727 registry::IIntrospectableRegistry& rgy)
2828{
2929 for (std::size_t index = 0 ; index < rgy.size (); index++)
@@ -82,7 +82,7 @@ namespace cyphal::support
8282// / The removal predicate, if provided, allows the caller to specify which registers need to be removed from the
8383// / storage instead of being saved. This is useful for implementing the "factory reset" feature.
8484template <typename ResetPredicate>
85- [[nodiscard]] std::optional<platform::storage::Error> save (platform::storage::KeyValueStorageBase & kv,
85+ [[nodiscard]] std::optional<platform::storage::Error> save (platform::storage::interface::KeyValueStorage & kv,
8686 const registry::IIntrospectableRegistry& rgy,
8787 ResetPredicate const reset_predicate)
8888{
@@ -127,7 +127,7 @@ template <typename ResetPredicate>
127127 }
128128 return std::nullopt ;
129129}
130- [[nodiscard]] inline std::optional<platform::storage::Error> save (platform::storage::KeyValueStorageBase & kv,
130+ [[nodiscard]] inline std::optional<platform::storage::Error> save (platform::storage::interface::KeyValueStorage & kv,
131131 const registry::IIntrospectableRegistry& rgy)
132132{
133133 return save (kv, rgy, [](std::string_view) { return false ; });
0 commit comments