Displaying 1 result from an estimated 1 matches for "linux_percent_progress_cb".
2010 Apr 27
4
Patch sensible callback framework
...io.h>
 #include <string.h>
 #include <console.h>
+#include <syslinux/callback.h>
 #include <syslinux/loadfile.h>
 #include <syslinux/linux.h>
 #include <syslinux/pxe.h>
@@ -108,6 +109,32 @@ static char *make_cmdline(char **argv)
     return cmdline;
 }
 
+void linux_percent_progress_cb(const char* file, size_t cur, size_t total) {
+    int percent = (int)(((float)cur / (float)total) * 100.0);
+    clear_line();
+    move_cursor_to_column(0);
+    printf("Loading: %s %d%%", file, percent);
+}
+
+void linux_dot_progress_cb(const char* file, size_t cur, size_t total) {
+...