1*688f2f5bSNamhyung Kim #include "../cache.h" 2*688f2f5bSNamhyung Kim #include "progress.h" 3*688f2f5bSNamhyung Kim 4*688f2f5bSNamhyung Kim static void nop_progress_update(u64 curr __maybe_unused, 5*688f2f5bSNamhyung Kim u64 total __maybe_unused, 6*688f2f5bSNamhyung Kim const char *title __maybe_unused) 7*688f2f5bSNamhyung Kim { 8*688f2f5bSNamhyung Kim } 9*688f2f5bSNamhyung Kim 10*688f2f5bSNamhyung Kim static struct ui_progress default_progress_fns = 11*688f2f5bSNamhyung Kim { 12*688f2f5bSNamhyung Kim .update = nop_progress_update, 13*688f2f5bSNamhyung Kim }; 14*688f2f5bSNamhyung Kim 15*688f2f5bSNamhyung Kim struct ui_progress *progress_fns = &default_progress_fns; 16*688f2f5bSNamhyung Kim 17*688f2f5bSNamhyung Kim void ui_progress__update(u64 curr, u64 total, const char *title) 18*688f2f5bSNamhyung Kim { 19*688f2f5bSNamhyung Kim return progress_fns->update(curr, total, title); 20*688f2f5bSNamhyung Kim } 21