|
@@ -8,9 +8,7 @@
|
|
#ifdef __cplusplus
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
extern "C" {
|
|
#endif
|
|
#endif
|
|
-#ifdef __cplusplus
|
|
|
|
-}
|
|
|
|
-#endif
|
|
|
|
|
|
+
|
|
#define DECLARE_SET_DEFAULT(t) void config_set_default_## t (const char *key, t value);
|
|
#define DECLARE_SET_DEFAULT(t) void config_set_default_## t (const char *key, t value);
|
|
#define DECLARE_GET_NUM(t) esp_err_t config_get_## t (const char *key, t * value);
|
|
#define DECLARE_GET_NUM(t) esp_err_t config_get_## t (const char *key, t * value);
|
|
#ifndef FREE_RESET
|
|
#ifndef FREE_RESET
|
|
@@ -45,3 +43,7 @@ esp_err_t config_set_value(nvs_type_t nvs_type, const char *key, const void * va
|
|
nvs_type_t config_get_item_type(cJSON * entry);
|
|
nvs_type_t config_get_item_type(cJSON * entry);
|
|
void * config_safe_alloc_get_entry_value(nvs_type_t nvs_type, cJSON * entry);
|
|
void * config_safe_alloc_get_entry_value(nvs_type_t nvs_type, cJSON * entry);
|
|
|
|
|
|
|
|
+#ifdef __cplusplus
|
|
|
|
+}
|
|
|
|
+#endif
|
|
|
|
+
|