]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: rename virDomainPCIAddressGetNextSlot() to ...GetNextAddr()
authorLaine Stump <laine@laine.org>
Sat, 22 Oct 2016 17:10:10 +0000 (13:10 -0400)
committerLaine Stump <laine@laine.org>
Wed, 11 Jan 2017 09:52:19 +0000 (04:52 -0500)
With the advent of VIR_PCI_CONNECT_AGGREGATE_SLOT, the new name is
more appropriate, since the address returned may be another address
on the same slot as last time, not necessarily a new slot.

src/conf/domain_addr.c

index 57ddef8504a6e56580608e27b30f84142b4aee37..58cb8048befce65c2cfba9514747ab2e30df0174 100644 (file)
@@ -770,7 +770,7 @@ virDomainPCIAddressFindUnusedFunctionOnBus(virDomainPCIAddressBusPtr bus,
 
 
 static int ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
-virDomainPCIAddressGetNextSlot(virDomainPCIAddressSetPtr addrs,
+virDomainPCIAddressGetNextAddr(virDomainPCIAddressSetPtr addrs,
                                virPCIDeviceAddressPtr next_addr,
                                int function,
                                virDomainPCIConnectFlags flags)
@@ -879,7 +879,7 @@ virDomainPCIAddressReserveNextAddr(virDomainPCIAddressSetPtr addrs,
 {
     virPCIDeviceAddress addr;
 
-    if (virDomainPCIAddressGetNextSlot(addrs, &addr, function, flags) < 0)
+    if (virDomainPCIAddressGetNextAddr(addrs, &addr, function, flags) < 0)
         return -1;
 
     if (virDomainPCIAddressReserveAddr(addrs, &addr, flags, false) < 0)