Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Go to the source code of this file.
Data Structures | |
struct | fs_mgmt_hash_checksum_group |
A collection of handlers for an entire hash/checksum group. More... | |
Typedefs | |
typedef int(* | fs_mgmt_hash_checksum_handler_fn) (struct fs_file_t *file, uint8_t *output, size_t *out_len, size_t len) |
Function that gets called to generate a hash or checksum. | |
typedef void(* | fs_mgmt_hash_checksum_list_cb) (const struct fs_mgmt_hash_checksum_group *group, void *user_data) |
Function that gets called with hash/checksum details. | |
Functions | |
void | fs_mgmt_hash_checksum_register_group (struct fs_mgmt_hash_checksum_group *group) |
Registers a full hash/checksum group. | |
void | fs_mgmt_hash_checksum_unregister_group (struct fs_mgmt_hash_checksum_group *group) |
Unregisters a full hash/checksum group. | |
const struct fs_mgmt_hash_checksum_group * | fs_mgmt_hash_checksum_find_handler (const char *name) |
Finds a registered hash/checksum handler. | |
void | fs_mgmt_hash_checksum_find_handlers (fs_mgmt_hash_checksum_list_cb cb, void *user_data) |
Runs a callback with all supported hash/checksum types. | |
typedef int(* fs_mgmt_hash_checksum_handler_fn) (struct fs_file_t *file, uint8_t *output, size_t *out_len, size_t len) |
Function that gets called to generate a hash or checksum.
file | Opened file context |
output | Output buffer for hash/checksum |
out_len | Updated with size of input data |
len | Maximum length of data to perform hash/checksum on |
typedef void(* fs_mgmt_hash_checksum_list_cb) (const struct fs_mgmt_hash_checksum_group *group, void *user_data) |
Function that gets called with hash/checksum details.
group | Details about a supported hash/checksum |
user_data | User-supplied value to calling function |
const struct fs_mgmt_hash_checksum_group * fs_mgmt_hash_checksum_find_handler | ( | const char * | name | ) |
Finds a registered hash/checksum handler.
name | The name of the hash/checksum group to find. |
void fs_mgmt_hash_checksum_find_handlers | ( | fs_mgmt_hash_checksum_list_cb | cb, |
void * | user_data ) |
Runs a callback with all supported hash/checksum types.
cb | The callback function to call with each hash/checksum type. |
user_data | Data to pass back with the callback function. |
void fs_mgmt_hash_checksum_register_group | ( | struct fs_mgmt_hash_checksum_group * | group | ) |
Registers a full hash/checksum group.
group | The group to register. |
void fs_mgmt_hash_checksum_unregister_group | ( | struct fs_mgmt_hash_checksum_group * | group | ) |
Unregisters a full hash/checksum group.
group | The group to register. |