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

Custom type interface with string 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, FuriString *string)
 Convert value to string representation.
 
bool(* deserialize_callback )(const SettingProviderSetting *setting, const char *string, void *value)
 Parse string to value.
 
void(* default_value_callback )(void *container)
 Dynamic default value.
 
const void * default_value
 Pointer to default value.
 
size_t default_value_size
 Size of default value in bytes.
 

Detailed Description

Custom type interface with string serialization.

Allows defining arbitrary types with custom serialize/deserialize logic using FuriString as the intermediate format.

Field Documentation

◆ default_value

const void* SettingProviderCustomInterface::default_value

Pointer to default value.

If NULL, dynamic default_value_callback is used.

◆ default_value_callback

void(* SettingProviderCustomInterface::default_value_callback) (void *container)

Dynamic default value.

If NULL, constant default_value is used.


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