summaryrefslogtreecommitdiffstats
path: root/src/progress.h
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2018-05-17 15:44:27 +1000
committerAlistair Popple <alistair@popple.id.au>2018-05-17 16:20:05 +1000
commitf665008c3147e07fd59110d0a5d5aaba9f15ef28 (patch)
treee9e0cc14f545ad8b324d6a9c9bbbe51c223364d8 /src/progress.h
parent6e3ac338f3920596d9abf2cc3501d34d96ed7bf4 (diff)
downloadpdbg-f665008c3147e07fd59110d0a5d5aaba9f15ef28.tar.gz
pdbg-f665008c3147e07fd59110d0a5d5aaba9f15ef28.zip
libpdbg: Add function to register progress tick callback
For long running library operations such as getmem it is useful to give the application an ability to report progress back to the user. This adds a way to register a progress_tick callback which takes the current and maximum progress counts. Signed-off-by: Alistair Popple <alistair@popple.id.au> Suggested-by: Amitay Isaacs <amitay@ozlabs.org>
Diffstat (limited to 'src/progress.h')
-rw-r--r--src/progress.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/progress.h b/src/progress.h
index 990f6d5..48c93b2 100644
--- a/src/progress.h
+++ b/src/progress.h
@@ -17,8 +17,8 @@
#include <inttypes.h>
-void progress_init(uint64_t count);
-void progress_tick(uint64_t cur);
+void progress_init(void);
+void progress_tick(uint64_t cur, uint64_t end);
void progress_end(void);
#endif /* __PROGRESS_H */
OpenPOWER on IntegriCloud