Namhyung Kim | 688f2f5 | 2012-11-13 22:30:32 +0900 | [diff] [blame^] | 1 | #include "../cache.h" |
| 2 | #include "progress.h" |
| 3 | |
| 4 | static void nop_progress_update(u64 curr __maybe_unused, |
| 5 | u64 total __maybe_unused, |
| 6 | const char *title __maybe_unused) |
| 7 | { |
| 8 | } |
| 9 | |
| 10 | static struct ui_progress default_progress_fns = |
| 11 | { |
| 12 | .update = nop_progress_update, |
| 13 | }; |
| 14 | |
| 15 | struct ui_progress *progress_fns = &default_progress_fns; |
| 16 | |
| 17 | void ui_progress__update(u64 curr, u64 total, const char *title) |
| 18 | { |
| 19 | return progress_fns->update(curr, total, title); |
| 20 | } |