mirror of
https://github.com/m5stack/ESP-Claw.git
synced 2026-05-20 11:51:49 -07:00
31 lines
719 B
C
31 lines
719 B
C
/*
|
|
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#pragma once
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "esp_err.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct {
|
|
const char *namespace_name;
|
|
} settings_store_config_t;
|
|
|
|
esp_err_t settings_store_init(const settings_store_config_t *config);
|
|
esp_err_t settings_store_get_string(const char *key,
|
|
char *buf,
|
|
size_t buf_size,
|
|
const char *default_value);
|
|
esp_err_t settings_store_set_string(const char *key, const char *value);
|
|
esp_err_t settings_store_commit(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|