]> xenbits.xensource.com Git - libvirt.git/commit
conf: use struct instead of int for each slot in virDomainPCIAddressBus
authorLaine Stump <laine@laine.org>
Sun, 16 Oct 2016 21:14:25 +0000 (17:14 -0400)
committerLaine Stump <laine@laine.org>
Wed, 11 Jan 2017 09:29:48 +0000 (04:29 -0500)
commit9838cad9cd9b7969162e4fe1546689e26af33902
tree7e039f7a0adfd715237af617062f833ed3760e86
parenta30b08b7179c392b59f65504cc2a6ce758e49dc6
conf: use struct instead of int for each slot in virDomainPCIAddressBus

When keeping track of which functions of which slots are allocated, we
will need to have more information than just the current bitmap with a
bit for each function that is currently stored for each slot in a
virDomainPCIAddressBus. To prepare for adding more per-slot info, this
patch changes "uint8_t slots" into "virDomainPCIAddressSlot slot", which
currently has a single member named "functions" that serves the same
purpose previously served directly by "slots".
src/conf/domain_addr.c
src/conf/domain_addr.h
src/qemu/qemu_domain_address.c