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

Function config_load_file

tinyemu/machine.c:495–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493#endif
494
495static void config_load_file(VMConfigLoadState *s, const char *filename,
496 FSLoadFileCB *cb, void *opaque)
497{
498 // printf("loading %s\n", filename);
499#ifdef CONFIG_FS_NET
500 if (is_url(filename)) {
501 s->file_load_cb = cb;
502 s->file_load_opaque = opaque;
503 fs_wget(filename, NULL, NULL, s, config_load_file_cb, TRUE);
504 } else
505#endif
506 {
507 uint8_t *buf;
508 int size;
509 size = load_file(&buf, filename);
510 cb(opaque, buf, size);
511 free(buf);
512 }
513}
514
515void virt_machine_load_config_file(VirtMachineParams *p,
516 const char *filename,

Callers 2

Calls 3

is_urlFunction · 0.85
fs_wgetFunction · 0.85
load_fileFunction · 0.85

Tested by

no test coverage detected