5#include <furi/core/string.h>
13 JsonConfigStatusMissing,
14 JsonConfigStatusError,
33JsonConfigStatus json_config_free(
JsonConfig* inst);
42JsonConfigStatus json_config_open(
JsonConfig* inst,
const char* file_path);
55 json_config_read_int(
JsonConfig* inst,
const char* key,
int* val,
const int* val_default);
67JsonConfigStatus json_config_read_number(
71 const float* val_default);
84 json_config_read_bool(
JsonConfig* inst,
const char* key,
bool* val,
const bool* val_default);
96JsonConfigStatus json_config_read_str(
100 const char* val_default);
109JsonConfigStatus json_config_delete(
JsonConfig* inst,
const char* key);
119JsonConfigStatus json_config_write_int(
JsonConfig* inst,
const char* key,
int val);
129JsonConfigStatus json_config_write_number(
JsonConfig* inst,
const char* key,
float val);
139JsonConfigStatus json_config_write_bool(
JsonConfig* inst,
const char* key,
bool val);
149JsonConfigStatus json_config_write_str(
JsonConfig* inst,
const char* key,
const char* val);
162 json_config_read_single_int(
char* file_path,
char* key,
int* val,
int* val_default);
174JsonConfigStatus json_config_read_single_number(
191 json_config_read_single_bool(
char* file_path,
const char* key,
bool* val,
bool* val_default);
203JsonConfigStatus json_config_read_single_str(
207 const char* val_default);
217JsonConfigStatus json_config_write_single_int(
char* file_path,
char* key,
int val);
226JsonConfigStatus json_config_write_single_number(
char* file_path,
const char* key,
float val);
236JsonConfigStatus json_config_write_single_bool(
char* file_path,
const char* key,
bool val);
246JsonConfigStatus json_config_write_single_str(
char* file_path,
const char* key,
const char* val);
Definition json_helper.c:5