| 480 | |
| 481 | #ifdef CONFIG_FS_NET |
| 482 | static 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 | |
| 495 | static void config_load_file(VMConfigLoadState *s, const char *filename, |
nothing calls this directly
no test coverage detected