Backend handler functions.
More...
#include <zephyr/settings/settings.h>
Backend handler functions.
Sources are registered using a call to settings_src_register. Destinations are registered using a call to settings_dst_register.
◆ csi_get_val_len
Gets the value's length associated to the Key defined by name.
It returns 0 if the Key/Value doesn't exist.
- Parameters
-
| [in] | cs | Corresponding backend handler node. |
| [in] | name | Key in string format. |
- Returns
- 0 if the Key/Value doesn't exist
◆ csi_load
Loads values from storage limited to subtree defined by subtree.
- Parameters
-
| [in] | cs | Corresponding backend handler node, |
| [in] | arg | Structure that holds additional data for data loading. |
- Note
- Backend is expected not to provide duplicates of the entities. It means that if the backend does not contain any functionality to really delete old keys, it has to filter out old entities and call load callback only on the final entity.
◆ csi_load_one
Loads one value from storage that corresponds to the key defined by name.
- Parameters
-
| [in] | cs | Corresponding backend handler node. |
| [in] | name | Key in string format. |
| [in] | buf | Buffer where data should be copied. |
| [in] | buf_len | Length of buf. |
◆ csi_save
| int(* settings_store_itf::csi_save) (struct settings_store *cs, const char *name, const char *value, size_t val_len) |
Save a single key-value pair to storage.
- Parameters
-
| [in] | cs | Corresponding backend handler node |
| [in] | name | Key in string format |
| [in] | value | Binary value |
| [in] | val_len | Length of value in bytes. |
◆ csi_save_end
Handler called after an export operation.
- Parameters
-
| [in] | cs | Corresponding backend handler node |
◆ csi_save_start
Handler called before an export operation.
- Parameters
-
| [in] | cs | Corresponding backend handler node |
◆ csi_storage_get
| void *(* settings_store_itf::csi_storage_get) (struct settings_store *cs) |
Get pointer to the storage instance used by the backend.
- Parameters
-
| [in] | cs | Corresponding backend handler node |
The documentation for this struct was generated from the following file: