MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / config_load_file_cb

Function config_load_file_cb

tinyemu/machine.c:482–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480
481#ifdef CONFIG_FS_NET
482static void config_load_file_cb(void *opaque, int err, void *data, size_t size)
483{
484 VMConfigLoadState *s = opaque;
485
486 // printf("err=%d data=%p size=%ld\n", err, data, size);
487 if (err < 0) {
488 vm_error("Error %d while loading file\n", -err);
489 exit(1);
490 }
491 s->file_load_cb(s->file_load_opaque, data, size);
492}
493#endif
494
495static void config_load_file(VMConfigLoadState *s, const char *filename,

Callers

nothing calls this directly

Calls 1

vm_errorFunction · 0.85

Tested by

no test coverage detected