qemu-e2k/hw/net
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
..
fsl_etsec FSL eTSEC: Fix typo in rx ring 2014-03-15 13:54:18 +04:00
allwinner_emac.c
cadence_gem.c
dp8393x.c
e1000_regs.h
e1000.c
eepro100.c
etraxfs_eth.c
lan9118.c
lance.c
Makefile.objs Add Enhanced Three-Speed Ethernet Controller (eTSEC) 2014-03-05 03:06:45 +01:00
mcf_fec.c
milkymist-minimac2.c
mipsnet.c
ne2000-isa.c qdev: Remove hex8/32/64 property types 2014-02-14 21:12:04 +01:00
ne2000.c
ne2000.h
opencores_eth.c opencores_eth: flush queue whenever can_receive can go from false to true 2014-02-25 11:50:16 +01:00
pcnet-pci.c
pcnet.c
pcnet.h
rtl8139.c
smc91c111.c
spapr_llan.c spapr-vlan: flush queue whenever can_receive can go from false to true 2014-03-05 03:07:00 +01:00
stellaris_enet.c hw/net/stellaris_enet: Avoid unintended sign extension 2014-02-26 17:19:58 +00:00
vhost_net.c vhost_net: use offload API instead of bypassing it 2014-02-25 14:31:05 +01:00
virtio-net.c virtio-net: remove function calls from assert 2014-03-09 21:09:37 +02:00
vmware_utils.h
vmxnet3.c net: remove implicit peer from offload API 2014-02-25 14:31:05 +01:00
vmxnet3.h
vmxnet_debug.h
vmxnet_rx_pkt.c
vmxnet_rx_pkt.h
vmxnet_tx_pkt.c
vmxnet_tx_pkt.h
xen_nic.c
xgmac.c
xilinx_axienet.c qom: Add check() argument to object_property_add_link() 2014-03-19 22:23:13 +01:00
xilinx_ethlite.c