]> Git Repo - qemu.git/commit - hw/qdev.h
qdev: Split up header so it can be used in cpu.h
authorAnthony Liguori <[email protected]>
Fri, 10 Aug 2012 17:00:43 +0000 (12:00 -0500)
committerAndreas Färber <[email protected]>
Thu, 15 Nov 2012 01:18:55 +0000 (02:18 +0100)
commit074a86fccd185616469dfcdc0e157f438aebba18
tree6312911e1b30918762e83d787978bb40a19588ea
parent5202ef942fb986011a31d9366fbf93a56f0056e4
qdev: Split up header so it can be used in cpu.h

Header file dependency is a frickin' nightmare right now.  cpu.h tends
to get included in our 'include everything' header files but qdev also
needs to include those headers mainly for qdev-properties since it knows
about CharDriverState and friends.

We can solve this for now by splitting out qdev.h along the same lines
that we previously split the C file.  Then cpu.h just needs to include
qdev-core.h.

hw/qdev.h is split into following new headers:
    hw/qdev-core.h
    hw/qdev-properties.h
    hw/qdev-monitor.h

Signed-off-by: Anthony Liguori <[email protected]>
[ehabkost: re-add DEFINE_PROP_PCI_HOST_DEVADDR, that was removed on the
 original patch (by mistake, I guess)]
[ehabkost: kill qdev_prop_set_vlan() declaration]
[ehabkost: moved get_fw_dev_path() comment to the original location
 (I don't know why it was moved)]
[ehabkost: removed qdev_exists() declaration]
[ehabkost: keep using 'QemuOpts' instead of 'struct QemuOpts', as
 qdev-core.h includes qemu-option.h]

Signed-off-by: Eduardo Habkost <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
hw/mc146818rtc.c
hw/qdev-addr.c
hw/qdev-core.h [new file with mode: 0644]
hw/qdev-monitor.h [new file with mode: 0644]
hw/qdev-properties.c
hw/qdev-properties.h [new file with mode: 0644]
hw/qdev.c
hw/qdev.h
This page took 0.027525 seconds and 4 git commands to generate.