qemu-e2k/hw/dma
Stefan Hajnoczi 39f72ef94b qom: Add check() argument to object_property_add_link()
There are currently three types of object_property_add_link() callers:

1. The link property may be set at any time.
2. The link property of a DeviceState instance may only be set before
   realize.
3. The link property may never be set, it is read-only.

Something similar can already be achieved with
object_property_add_str()'s set() argument.  Follow its example and add
a check() argument to object_property_add_link().

Also provide default check() functions for case #1 and #2.  Case #3 is
covered by passing a NULL function pointer.

Cc: Peter Crosthwaite <peter.crosthwaite@petalogix.com>
Cc: Alexander Graf <agraf@suse.de>
Cc: Anthony Liguori <aliguori@amazon.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
[AF: Tweaked documentation comment]
Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-03-19 22:23:13 +01:00
..
etraxfs_dma.c
i8257.c
i82374.c qdev: Remove hex8/32/64 property types 2014-02-14 21:12:04 +01:00
Makefile.objs
omap_dma.c hw/dma/omap_dma: Fix bugs with DMA requests above 32 2013-07-15 16:17:44 +01:00
pl080.c exec: Make ldl_*_phys input an AddressSpace 2014-02-11 22:56:54 +10:00
pl330.c dma/pl330: implement dmaadnh instruction 2014-02-26 17:20:09 +00:00
puv3_dma.c puv3_dma: QOM cast cleanup 2013-07-29 21:06:45 +02:00
pxa2xx_dma.c pxa2xx_dma: QOM cast cleanup 2013-07-29 21:06:45 +02:00
rc4030.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
soc_dma.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
sparc32_dma.c hw: cannot_instantiate_with_device_add_yet due to pointer props 2013-12-24 17:27:17 +01:00
sun4m_iommu.c qdev: Remove hex8/32/64 property types 2014-02-14 21:12:04 +01:00
xilinx_axidma.c qom: Add check() argument to object_property_add_link() 2014-03-19 22:23:13 +01:00