]> xenbits.xensource.com Git - libvirt.git/commit
virpci: Introduce virPCIDeviceAddressCopy
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 7 Jun 2019 14:32:37 +0000 (16:32 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 17 Dec 2019 09:04:43 +0000 (10:04 +0100)
commit4fac30d988d57585799e38657e883cfefef177b3
tree3a524f7158cbd3453910a507214c6dd8059e08fb
parentec4ad1a5f5babcb66af57f3a6eda36e977f17d4a
virpci: Introduce virPCIDeviceAddressCopy

This helper is cleaner than plain memcpy() because one doesn't
have to look into virPCIDeviceAddress struct to see if it
contains any strings / pointers.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
ACKed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/libvirt_private.syms
src/util/virpci.c
src/util/virpci.h