Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
#include <settings.h>
Data Fields | |
const char * | name |
int(* | h_get )(const char *key, char *val, int val_len_max) |
int(* | h_set )(const char *key, size_t len, settings_read_cb read_cb, void *cb_arg) |
int(* | h_commit )(void) |
int(* | h_export )(int(*export_func)(const char *name, const void *val, size_t val_len)) |
Config handlers without the node element, used for static handlers. These are registered using a call to SETTINGS_REGISTER_STATIC().
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.