diff options
Diffstat (limited to 'libsylph/utils.c')
-rw-r--r-- | libsylph/utils.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libsylph/utils.c b/libsylph/utils.c index c6427cfd..8c2c2b80 100644 --- a/libsylph/utils.c +++ b/libsylph/utils.c @@ -3278,6 +3278,19 @@ void ui_update(void) ui_update_func(); } +static ProgressFunc progress_func = NULL; + +void set_progress_func(ProgressFunc func) +{ + progress_func = func; +} + +void progress_show(gint cur, gint total) +{ + if (progress_func) + progress_func(cur, total); +} + /* user input */ static QueryPasswordFunc query_password_func = NULL; |