summaryrefslogtreecommitdiff
path: root/src/status.h
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2023-08-10 14:15:00 +0800
committerMole Shang <[email protected]>2023-08-10 14:15:00 +0800
commit6cbcaba2a80c47714e8aa45d021bdcd4965780b1 (patch)
tree0adcb9b088997689e18fad20a463ea681e4f50b7 /src/status.h
parentef4918ffeb326751fa17c2c8335963be4e43254f (diff)
downloadhinata-6cbcaba2a80c47714e8aa45d021bdcd4965780b1.tar.gz
hinata-6cbcaba2a80c47714e8aa45d021bdcd4965780b1.tar.bz2
hinata-6cbcaba2a80c47714e8aa45d021bdcd4965780b1.zip
ui: show progress while remuxing
Diffstat (limited to 'src/status.h')
-rw-r--r--src/status.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/status.h b/src/status.h
new file mode 100644
index 0000000..97f8a4e
--- /dev/null
+++ b/src/status.h
@@ -0,0 +1,16 @@
+#ifndef STATUS_H_
+#define STATUS_H_
+
+#include <stdbool.h>
+
+typedef enum stat_type { SIZE_BYTES, TIME_SECS } stat_type_t;
+
+typedef struct status {
+ unsigned long cur;
+ unsigned long total;
+ bool is_done;
+ stat_type_t type;
+} status_t;
+
+
+#endif