![]() |
BSB Developer Docs
|
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. | |
Custom type interface with string serialization.
Allows defining arbitrary types with custom serialize/deserialize logic using FuriString as the intermediate format.
| const void* SettingProviderCustomInterface::default_value |
Pointer to default value.
If NULL, dynamic default_value_callback is used.
| void(* SettingProviderCustomInterface::default_value_callback) (void *container) |
Dynamic default value.
If NULL, constant default_value is used.