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

Function config_additional_file_load_cb

tinyemu/machine.c:566–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566static void config_additional_file_load_cb(void *opaque,
567 uint8_t *buf, int buf_len)
568{
569 VMConfigLoadState *s = opaque;
570 VirtMachineParams *p = s->vm_params;
571
572 p->files[s->file_index].buf = malloc(buf_len);
573 memcpy(p->files[s->file_index].buf, buf, buf_len);
574 p->files[s->file_index].len = buf_len;
575
576 /* load the next files */
577 s->file_index++;
578 config_additional_file_load(s);
579}
580
581void vm_add_cmdline(VirtMachineParams *p, const char *cmdline)
582{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected