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

Function config_additional_file_load

tinyemu/machine.c:544–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544static void config_additional_file_load(VMConfigLoadState *s)
545{
546 VirtMachineParams *p = s->vm_params;
547 while (s->file_index < VM_FILE_COUNT &&
548 p->files[s->file_index].filename == NULL) {
549 s->file_index++;
550 }
551 if (s->file_index == VM_FILE_COUNT) {
552 if (s->start_cb)
553 s->start_cb(s->opaque);
554 free(s);
555 } else {
556 char *fname;
557
558 fname = get_file_path(p->cfg_filename,
559 p->files[s->file_index].filename);
560 config_load_file(s, fname,
561 config_additional_file_load_cb, s);
562 free(fname);
563 }
564}
565
566static void config_additional_file_load_cb(void *opaque,
567 uint8_t *buf, int buf_len)

Callers 2

config_file_loadedFunction · 0.85

Calls 2

get_file_pathFunction · 0.85
config_load_fileFunction · 0.85

Tested by

no test coverage detected