MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / transfer_progress_cb

Function transfer_progress_cb

core/os/os-emscripten.c:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25static char file_buf[500] = {0};
26
27static bool transfer_progress_cb(void *context, int value, int total) {
28 (void)context;
29 EM_ASM({
30 if (window.transferProgressCallback) { transferProgressCallback($0, $1); }
31 }, value, total);
32 return false;
33}
34
35static int emu_send_variable_with_cb(const char *file, int location, usb_progress_handler_t *progress_handler) {
36 return emu_send_variables(&file, 1, location, progress_handler, NULL);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected