| // Copyright 2021 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include <Weave/Core/WeaveError.h> |
| |
| namespace nl { |
| namespace Weave { |
| namespace Platform { |
| namespace PersistedStorage { |
| |
| // Dummy implementations of PersistedStorage platform methods. When using the |
| // subset of openweave that does not require PersistedStorage to operate, but |
| // must still satisfy the linker, these implementations can be used instead. |
| // |
| // NOTE: Do *NOT* use this implementation if the full functionality of |
| // OpenWeave is used, this is intended only as a way to satisfy the linker |
| // for uses that use a small, limited subset of OpenWeave that do not require |
| // these to be implemented. |
| |
| WEAVE_ERROR Read(const char *aKey, uint32_t &aValue) |
| { |
| return WEAVE_ERROR_UNSUPPORTED_WEAVE_FEATURE; |
| } |
| |
| WEAVE_ERROR Write(const char *aKey, uint32_t aValue) |
| { |
| return WEAVE_ERROR_UNSUPPORTED_WEAVE_FEATURE; |
| } |
| |
| } // PersistentStorage |
| } // Platform |
| } // Weave |
| } // nl |
| |