Files
libvirt/src/util
Daniel Henrique Barboza b0264e9404 virpci.c: simplify virPCIDeviceNew() signature
The current virPCIDeviceNew() signature, receiving 4 uints in sequence
(domain, bus, slot, function), is not neat.

We already have a way to represent a PCI address in virPCIDeviceAddress
that is used in the code. Aside from the test files, most of
virPCIDeviceNew() callers have access to a virPCIDeviceAddress reference,
but then we need to retrieve the 4 required uints (addr.domain, addr.bus,
addr.slot, addr.function) to satisfy virPCIDeviceNew(). The result is
that we have extra verbosity/boilerplate to retrieve an information that
is already available in virPCIDeviceAddress.

A better way is presented by virNVMEDeviceNew(), where the caller just
supplies a virPCIDeviceAddress pointer and the function handles the
details internally.

This patch changes virPCIDeviceNew() to receive a virPCIDeviceAddress
pointer instead of 4 uints.

Reviewed-by: Laine Stump <laine@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
2021-01-29 17:52:10 -03:00
..
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-07-09 10:01:41 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-03-13 17:26:55 +01:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-02-24 23:15:49 +01:00
2020-02-24 17:25:07 +00:00
2020-08-03 15:30:40 +02:00
2020-02-24 20:25:48 +01:00
2021-01-08 12:17:13 +01:00
2021-01-25 20:27:38 -05:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2019-10-16 12:06:44 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2019-10-16 12:06:44 +02:00
2020-03-05 12:23:02 +00:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-11-24 14:17:08 +01:00
2019-10-16 12:06:44 +02:00
2020-12-04 16:24:19 +01:00
2020-12-04 16:24:19 +01:00