BSB Developer Docs
Loading...
Searching...
No Matches
SettingProviderRawInterface Struct Reference

Raw interface with direct cJSON serialization. More...

#include <setting_provider.h>

Data Fields

bool(* is_valid_callback )(const SettingProviderSetting *setting, const void *value)
 Returns true if value is valid, NULL skips validation.
 
bool(* serialize_callback )(const SettingProviderSetting *setting, const void *value, cJSON *json_node)
 Convert value directly to cJSON node.
 
bool(* deserialize_callback )(const SettingProviderSetting *setting, const cJSON *json_node, void *value)
 Parse cJSON node to value.
 
const void * default_value
 Pointer to default value.
 
size_t default_value_size
 Size of default value in bytes.
 

Detailed Description

Raw interface with direct cJSON serialization.


The documentation for this struct was generated from the following file: