diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-03-08 23:42:09 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-03-09 01:03:41 +0100 |
| commit | abb212dd5fbb33168f583f36b67f29f659a91bb4 (patch) | |
| tree | e9d246178f71bf314efb8f06f7419a2dc4aefa76 /include/ext4_mkfs.h | |
| parent | 6d34064b3a4b07218b01f6cc7700ee2ce68a7542 (diff) | |
Add progress reporting for formatting.
Diffstat (limited to 'include/ext4_mkfs.h')
| -rw-r--r-- | include/ext4_mkfs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ext4_mkfs.h b/include/ext4_mkfs.h index 16a05f8..697d645 100644 --- a/include/ext4_mkfs.h +++ b/include/ext4_mkfs.h @@ -71,8 +71,11 @@ struct ext4_mkfs_info { int ext4_mkfs_read_info(struct ext4_blockdev *bd, struct ext4_mkfs_info *info); +/* Callback to report progress from 0 to 1 */ +typedef void (*ext4_progress)(void*, float); + int ext4_mkfs(struct ext4_fs *fs, struct ext4_blockdev *bd, - struct ext4_mkfs_info *info, int fs_type); + struct ext4_mkfs_info *info, int fs_type, ext4_progress progress, void* progress_context); #ifdef __cplusplus } |
