machine.c 598 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * QEMU Machine
  3. *
  4. * Copyright (C) 2014 Red Hat Inc
  5. *
  6. * Authors:
  7. * Marcel Apfelbaum <marcel.a@redhat.com>
  8. *
  9. * This work is licensed under the terms of the GNU GPL, version 2 or later.
  10. * See the COPYING file in the top-level directory.
  11. */
  12. #include "hw/boards.h"
  13. static const TypeInfo machine_info = {
  14. .name = TYPE_MACHINE,
  15. .parent = TYPE_OBJECT,
  16. .abstract = true,
  17. .class_size = sizeof(MachineClass),
  18. .instance_size = sizeof(MachineState),
  19. };
  20. static void machine_register_types(void)
  21. {
  22. type_register_static(&machine_info);
  23. }
  24. type_init(machine_register_types)