summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-06-14 22:31:04 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-06-28 10:43:55 +0200
commit257da5cac07854c89861de5925475b339e8ff71b (patch)
tree8da1f08d39f18465273354a00302104b7d32ed1b /include
parent3039467bbd3eb1fa8c9ea2c3b63451f0082143e9 (diff)
downloadbarebox-257da5cac07854c89861de5925475b339e8ff71b.tar.gz
barebox-257da5cac07854c89861de5925475b339e8ff71b.tar.xz
add progression bar function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/progress.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/progress.h b/include/progress.h
new file mode 100644
index 0000000000..5c4dd1e775
--- /dev/null
+++ b/include/progress.h
@@ -0,0 +1,15 @@
+#ifndef __PROGRSS_H
+#define __PROGRSS_H
+
+/* Initialize a progress bar. If max > 0 a one line progress
+ * bar is printed where 'max' corresponds to 100%. If max == 0
+ * a multi line progress bar is printed.
+ */
+void init_progression_bar(int max);
+
+/* update a progress bar to a new value. If now < 0 then a
+ * spinner is printed.
+ */
+void show_progress(int now);
+
+#endif /* __PROGRSS_H */