mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
21 lines
822 B
C
21 lines
822 B
C
#pragma once
|
|
#include "esp_err.h"
|
|
#include "nvs.h"
|
|
#include "trace.h"
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
extern const char current_namespace[];
|
|
extern const char settings_partition[];
|
|
bool isNameValid(char * key);
|
|
esp_err_t store_nvs_value_len(nvs_type_t type, const char *key, void * data, size_t data_len);
|
|
esp_err_t store_nvs_value(nvs_type_t type, const char *key, void * data);
|
|
esp_err_t get_nvs_value(nvs_type_t type, const char *key, void*value, const uint8_t buf_size);
|
|
void * get_nvs_value_alloc(nvs_type_t type, const char *key);
|
|
esp_err_t erase_nvs(const char *key);
|
|
void * get_nvs_value_alloc_default(nvs_type_t type, const char *key, void * default_value, size_t blob_size);
|
|
void nvs_value_set_default(nvs_type_t type, const char *key, void * default_value, size_t blob_size);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|