Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
|
Structure provided in the MGMT_EVT_OP_SETTINGS_MGMT_ACCESS notification callback: This callback function is used to notify the application about a pending setting read/write/delete/load/save/commit request and to authorise or deny it. More...
#include <settings_mgmt_callbacks.h>
Data Fields | |
enum settings_mgmt_access_types | access |
Type of access. | |
char * | name |
Key name for accesses (only set for SETTINGS_ACCESS_READ, SETTINGS_ACCESS_WRITE and SETTINGS_ACCESS_DELETE). | |
const uint8_t * | val |
Data provided by the user (only set for SETTINGS_ACCESS_WRITE) | |
const size_t * | val_length |
Length of data provided by the user (only set for SETTINGS_ACCESS_WRITE) | |
Structure provided in the MGMT_EVT_OP_SETTINGS_MGMT_ACCESS notification callback: This callback function is used to notify the application about a pending setting read/write/delete/load/save/commit request and to authorise or deny it.
Access will be allowed so long as no handlers return an error, if one returns an error then access will be denied.
enum settings_mgmt_access_types settings_mgmt_access::access |
Type of access.
char* settings_mgmt_access::name |
Key name for accesses (only set for SETTINGS_ACCESS_READ, SETTINGS_ACCESS_WRITE and SETTINGS_ACCESS_DELETE).
Note that this can be changed by handlers to redirect settings access if needed (as long as it does not exceed the maximum setting string size) if CONFIG_MCUMGR_GRP_SETTINGS_BUFFER_TYPE_STACK is selected, of maximum size CONFIG_MCUMGR_GRP_SETTINGS_NAME_LEN.
Note: This string must be NULL terminated.
const uint8_t* settings_mgmt_access::val |
Data provided by the user (only set for SETTINGS_ACCESS_WRITE)
const size_t* settings_mgmt_access::val_length |
Length of data provided by the user (only set for SETTINGS_ACCESS_WRITE)