]> git.ipfire.org Git - thirdparty/qemu.git/commit
qdev-properties.c: Separate core from the code used only by qemu-system-*
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 5 Dec 2012 16:49:11 +0000 (14:49 -0200)
committerAndreas Färber <afaerber@suse.de>
Wed, 19 Dec 2012 13:09:31 +0000 (14:09 +0100)
commita404b61244ff555ace0a1360fc22275fbeda503e
tree214ed2a146754f04aadfca0d97f7fec721bf356b
parent04a2d61e494532260214736ebb0f975822771643
qdev-properties.c: Separate core from the code used only by qemu-system-*

This separates the qdev properties code in two parts:
 - qdev-properties.c, that contains most of the qdev properties code;
 - qdev-properties-system.c for code specific for qemu-system-*,
   containing:
   - Property types: drive, chr, netdev, vlan, that depend on code that
     won't be included on *-user
   - qemu_add_globals(), that depends on qemu-config.o.

This change should help on two things:
 - Allowing DeviceState to be used by *-user without pulling
   dependencies that are specific for qemu-system-*;
 - Writing qdev unit tests without pulling too many dependencies.

The copyright/license of qdev-properties.c isn't explicitly stated at
the file, so add a simple copyright/license header pointing to the
commit ID of the original file.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/Makefile.objs
hw/qdev-properties-system.c [new file with mode: 0644]
hw/qdev-properties.c
hw/qdev-properties.h
hw/qdev.c