216#define MMCONFIG_MAX_KEYLEN 32
543 uint32_t *bytes_used, int32_t *bytes_remaining);
int mmconfig_write_int(const char *key, int value)
Converts the given integer to a string and writes to persistent store.
static int mmconfig_delete_key(const char *key)
Deletes the specified key(s) from persistent store.
mmconfig_result
Return & error codes.
int mmconfig_read_string(const char *key, char *buffer, int bufsize)
Returns the persistent store string value identified by the key.
int mmconfig_read_int(const char *key, int *value)
Returns the integer stored in persistent store identified by the key.
int mmconfig_read_bool(const char *key, bool *value)
Returns the boolean value stored in persistent store identified by the key.
int mmconfig_write_bool(const char *key, bool value)
Converts the given boolean to a string and writes to persistent store.
int mmconfig_write_update_node_list(const struct mmconfig_update_node *node_list)
Writes all updates from the update node list to persistent store.
int mmconfig_eraseall(void)
Erases all flash blocks allocated to persistent storage and write the signature at the 2 copies in fl...
int mmconfig_write_uint32(const char *key, uint32_t value)
Converts the given unsigned integer to a string and writes to persistent store.
int mmconfig_check_usage(const struct mmconfig_update_node *node_list, uint32_t *bytes_used, int32_t *bytes_remaining)
Calculates the number of bytes that would be needed to write the given updates (if not NULL) and the ...
void load_mmwlan_settings(void)
Loads and applies any other mmwlan settings specified in config store.
int mmconfig_write_data(const char *key, const void *data, size_t size)
Writes the raw data to persistent store location identified by key.
int mmconfig_validate_key(const char *key)
Validates an entire key intended for data storage.
int mmconfig_read_bytes(const char *key, void *buffer, uint32_t buffsize, uint32_t offset)
Returns the persistent store data identified by the key.
int mmconfig_write_string(const char *key, const char *value)
Writes the null terminated string to persistent store location identified by key.
int mmconfig_read_uint32(const char *key, uint32_t *value)
Returns the unsigned integer stored in persistent store identified by the key.
int mmconfig_alloc_and_load(const char *key, void **data)
Allocates memory and loads the data from persistent memory into it returning a pointer.
int mmconfig_validate_key_character(char character)
Validates a single character intended to make up a key for data storage.
@ MMCONFIG_ERR_NOT_SUPPORTED
Operation not supported.
@ MMCONFIG_ERR_NOT_FOUND
Requested key was not found.
@ MMCONFIG_ERR_FULL
Config store is full.
@ MMCONFIG_DATA_ERASED
Partition was erased.
@ MMCONFIG_ERR_INVALID_KEY
Key provided was invalid.
@ MMCONFIG_ERR_OUT_OF_BOUNDS
Offset was out of bounds.
@ MMCONFIG_ERR_INSUFFICIENT_MEMORY
Insufficient memory.
@ MMCONFIG_ERR_INVALID_PARTITION
Valid partition was not found.
@ MMCONFIG_ERR_WILDCARD_KEY
Key contains wildcard valid only for deletion.
@ MMCONFIG_OK
Operation completed successfully.
@ MMCONFIG_ERR_INCORRECT_TYPE
Requested data type did not match found data.
size_t size
Size of the data.
void * data
Pointer to the data.
char * key
The key, which should be pre-validated using mmconfig_validate_key(), unless it is to be used for mul...
struct mmconfig_update_node * next
Pointer to the next node in the list.