Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Config handlers without the node element, used for static handlers. More...
#include <settings.h>
Data Fields | |
const char * | name |
Name of subtree. | |
int | cprio |
Priority of commit, lower value is higher priority. | |
int(* | h_get )(const char *key, char *val, int val_len_max) |
Get values handler of settings items identified by keyword names. | |
int(* | h_set )(const char *key, size_t len, settings_read_cb read_cb, void *cb_arg) |
Set value handler of settings items identified by keyword names. | |
int(* | h_commit )(void) |
This handler gets called after settings has been loaded in full. | |
int(* | h_export )(int(*export_func)(const char *name, const void *val, size_t val_len)) |
This gets called to dump all current settings items. | |
Config handlers without the node element, used for static handlers.
These are registered using a call to SETTINGS_STATIC_HANDLER_DEFINE().
int settings_handler_static::cprio |
Priority of commit, lower value is higher priority.
int(* settings_handler_static::h_commit) (void) |
This handler gets called after settings has been loaded in full.
User might use it to apply setting to the application.
int(* settings_handler_static::h_export) (int(*export_func)(const char *name, const void *val, size_t val_len)) |
This gets called to dump all current settings items.
This happens when settings_save tries to save the settings. Parameters:
Return: 0 on success, non-zero on failure.
int(* settings_handler_static::h_get) (const char *key, char *val, int val_len_max) |
Get values handler of settings items identified by keyword names.
Parameters:
Return: length of data read on success, negative on failure.
int(* settings_handler_static::h_set) (const char *key, size_t len, settings_read_cb read_cb, void *cb_arg) |
Set value handler of settings items identified by keyword names.
Parameters:
Return: 0 on success, non-zero on failure.
const char* settings_handler_static::name |
Name of subtree.