Files
third_party_exfatprogs/include/utils.h
T
jiangqianrong 74df28d5dc exfatprogs 升级到1.3.2
Signed-off-by: jiangqianrong <jiangqianrong1@huawei.com>
2026-04-11 10:48:59 +08:00

28 lines
604 B
C

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C) 2026 Hyunchul Lee <hyc.lee@gmail.com>
*
* Portions of the progress bar code derived from ntfsprogs-plus and modified for exfatprogs.
*/
#ifndef _EXFAT_UTILS_H
#define _EXFAT_UTILS_H
#include <stdint.h>
struct progress_bar {
uint32_t start;
uint32_t stop;
uint32_t current;
uint32_t resolution;
#ifdef PROG_CALC_FLOAT
float unit;
#else
uint64_t total;
#endif
};
void progress_init(struct progress_bar *p, uint32_t start, uint32_t stop, uint32_t res);
void progress_update(struct progress_bar *p, uint32_t current);
#endif