julhal01 | 2c18fbf | 2021-02-01 08:29:28 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | /** |
| 8 | * A config store that implements the common config interface that |
| 9 | * saves configuration data in ram. This may be used in environments |
| 10 | * that are configured at run-time e.g. from device tree. The |
| 11 | * config_ramstore is a singleton. |
| 12 | */ |
| 13 | #ifndef CONFIG_RAMSTORE_H |
| 14 | #define CONFIG_RAMSTORE_H |
| 15 | |
julhal01 | 2c18fbf | 2021-02-01 08:29:28 +0000 | [diff] [blame] | 16 | #ifdef __cplusplus |
| 17 | extern "C" { |
| 18 | #endif |
| 19 | |
| 20 | /** |
| 21 | * \brief Initializes the singleton store |
| 22 | * |
| 23 | */ |
| 24 | void config_ramstore_init(void); |
| 25 | |
| 26 | /** |
| 27 | * \brief Clean-up the config_ramstore after use |
| 28 | */ |
| 29 | void config_ramstore_deinit(void); |
| 30 | |
| 31 | |
| 32 | #ifdef __cplusplus |
| 33 | } |
| 34 | #endif |
| 35 | |
| 36 | #endif /* CONFIG_RAMSTORE_H */ |