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-19 11:50:49 +02:00
2020-10-12 15:24:21 +04:00
2020-10-09 18:46:04 +04:00
2020-07-27 15:44:38 +02:00
2021-01-26 15:44:50 +01:00
2020-07-08 08:40:30 +02:00
2020-07-08 08:40:30 +02:00
2021-01-28 10:51:30 +01:00
2020-10-20 09:05:10 +02:00
2020-11-24 18:45:07 +00:00
2020-11-24 18:45:07 +00:00
2020-09-18 08:51:47 +02:00
2020-11-24 14:21:08 -05:00
2020-06-15 17:10:15 +01:00
2020-06-15 17:10:15 +01:00
2020-06-19 10:39:55 +02:00
2020-12-09 14:03:05 +01:00
2021-01-04 15:33:31 +01:00
2020-11-24 14:21:08 -05:00
2020-10-20 09:05:10 +02:00
2020-07-21 09:52:59 +02:00
2021-01-29 14:34:14 +01:00
2020-11-20 12:09:51 +00:00
2021-01-08 15:27:00 +01:00
2021-01-08 15:27:00 +01:00
2020-10-20 15:15:06 -04:00
2020-10-20 15:15:06 -04:00
2020-11-09 12:25:49 +01:00
2020-11-06 09:14:01 +01:00
2020-12-08 15:12:34 +01:00
2021-01-29 14:34:15 +01:00
2021-01-29 12:25:49 +01:00
2021-01-08 09:18:21 +01:00
2020-11-04 11:54:03 +01:00
2020-07-23 16:18:09 +01:00
2020-07-23 16:18:09 +01:00
2020-09-18 11:22:28 +01:00
2020-09-18 11:22:28 +01:00
2020-09-18 11:22:28 +01:00
2020-06-26 15:36:40 +01:00
2020-10-05 10:28:43 +01:00
2021-01-06 02:05:10 +01:00
2020-12-07 15:38:31 -07:00
2020-12-07 15:38:31 -07:00
2020-07-23 16:11:39 +01:00
2020-09-22 17:19:26 +04:00
2020-10-09 18:46:04 +04:00
2020-10-09 18:46:04 +04:00
2020-10-08 17:04:08 +02:00
2020-09-23 16:49:01 +02:00
2021-01-07 23:20:03 +01:00
2020-08-25 19:44:43 +02:00
2020-09-23 16:49:01 +02:00
2020-09-02 10:28:10 +02:00
2020-09-23 16:49:01 +02:00
2020-11-24 18:45:07 +00:00
2020-09-24 12:27:07 +02:00
2021-01-22 11:10:27 +01:00
2020-11-24 14:21:29 -05:00
2020-06-15 17:10:15 +01:00
2020-09-23 14:54:38 +02:00
2020-12-09 14:03:05 +01:00
2020-07-10 09:40:58 +02:00
2021-01-04 15:33:31 +01:00
2020-11-24 14:21:29 -05:00
2020-11-24 14:21:29 -05:00
2020-10-20 09:05:10 +02:00
2020-06-26 15:36:40 +01:00
2020-12-01 11:23:41 +01:00
2021-01-22 11:10:27 +01:00
2020-08-17 08:42:47 +02:00
2020-08-03 07:23:46 +02:00
2020-07-08 16:34:09 -04:00
2020-12-04 16:15:03 +01:00
2021-01-08 15:27:00 +01:00
2020-12-02 15:43:07 +01:00
2020-10-20 15:15:06 -04:00
2020-11-06 10:40:51 +01:00
2020-08-03 07:23:46 +02:00
2020-11-06 10:40:51 +01:00
2020-11-09 12:25:49 +01:00
2021-01-08 09:17:25 +01:00
2020-11-06 10:40:51 +01:00
2020-11-06 10:40:51 +01:00
2020-11-12 15:01:42 +01:00
2020-12-02 15:43:07 +01:00
2020-11-09 13:23:25 +01:00
2020-12-02 15:43:07 +01:00
2020-11-12 08:24:43 +01:00
2021-01-29 12:25:49 +01:00
2021-01-29 12:25:49 +01:00
2021-01-08 09:18:21 +01:00
2020-09-23 14:54:38 +02:00
2020-09-23 16:49:01 +02:00
2020-09-23 16:49:01 +02:00
2020-08-03 09:27:00 +02:00
2020-11-19 17:25:44 +01:00
2020-07-23 16:18:09 +01:00
2020-09-18 11:22:28 +01:00
2020-09-18 11:22:28 +01:00
2020-09-23 11:30:05 +02:00
2020-11-16 17:25:41 +01:00
2020-08-03 09:27:00 +02:00
2020-11-20 12:09:51 +00:00
2020-12-07 10:41:15 -07:00
2020-12-01 17:25:31 +01:00
2020-11-06 10:40:51 +01:00
2020-11-06 10:40:51 +01:00
2020-11-06 10:40:51 +01:00
2020-08-03 07:23:45 +02:00
2020-09-08 16:07:47 +02:00
2020-10-08 19:19:22 +02:00
2020-08-25 19:03:12 +02:00
2020-10-05 15:38:47 +02:00
2020-07-08 16:35:54 -04:00
2020-10-05 10:28:43 +01:00
2020-11-03 21:26:32 +01:00
2020-09-14 17:28:51 +02:00
2020-09-23 16:49:01 +02:00
2020-06-23 17:33:30 +01:00
2020-09-02 10:28:10 +02:00
2020-09-02 10:28:10 +02:00
2020-11-27 15:59:26 +01:00
2020-12-02 15:43:07 +01:00
2020-09-17 18:19:56 +02:00
2020-09-23 16:49:01 +02:00
2021-01-29 17:52:10 -03:00
2020-11-09 12:25:49 +01:00
2020-11-09 15:43:53 +01:00
2020-08-25 19:03:12 +02:00
2020-07-08 16:34:09 -04:00
2020-11-06 10:31:57 +01:00
2020-09-04 10:20:49 +02:00
2020-11-27 16:28:31 +01:00
2020-10-29 19:52:07 +01:00
2020-07-23 14:58:16 +01:00
2020-09-23 14:54:38 +02:00
2020-07-08 16:34:09 -04:00
2020-12-17 09:27:51 +01:00
2020-09-23 16:49:01 +02:00
2020-09-23 14:54:38 +02:00
2020-09-23 16:49:01 +02:00
2020-09-02 10:28:10 +02:00
2020-09-23 16:49:01 +02:00
2020-09-02 10:28:10 +02:00
2020-09-02 10:28:10 +02:00
2020-09-23 14:54:38 +02:00
2020-11-27 16:28:31 +01:00
2021-01-29 17:52:10 -03:00
2020-10-02 12:43:15 +02:00
2020-09-02 10:28:10 +02:00
2020-09-02 10:28:10 +02:00
2020-08-25 19:03:11 +02:00
2020-11-02 22:01:36 -05:00
2020-11-23 14:44:39 +01:00
2021-01-06 09:25:07 +01:00
2020-08-03 09:26:36 +02:00
2020-11-23 14:44:39 +01:00
2020-11-23 14:44:39 +01:00
2020-11-23 14:44:39 +01:00
2021-01-06 09:25:07 +01:00
2020-08-03 09:26:36 +02:00
2020-11-23 14:44:39 +01:00
2021-01-06 09:25:07 +01:00
2021-01-27 07:49:58 +01:00
2020-09-23 16:49:01 +02:00
2020-10-02 12:43:15 +02:00
2020-08-03 09:27:06 +02:00
2020-08-03 09:27:06 +02:00
2020-08-25 19:03:13 +02:00
2021-01-06 02:05:10 +01:00
2020-09-02 10:28:10 +02:00
2020-09-23 16:49:01 +02:00
2020-09-23 16:49:01 +02:00
2020-07-13 18:47:44 +02:00