On Mon, May 28, 2018 at 12:28:23AM +0200, Fabiano Fidêncio wrote:
xenParsePCI() does a lot of stuff and, in order to make things
cleaner,
let's split it in two new functions:
- xenParsePCI(): it's a new function that keeps the old name. It's
responsible for the whole per-PCI logic from the old xenParsePCI();
- xenParsePCIList(): it's basically the old xenParsePCI(), but now it
just iterates over the list of PCIs, calling xenParsePCI() per each PCI.
This patch is basically preparing the ground for the future when
typesafe virConf acessors will be used.
Signed-off-by: Fabiano Fidêncio <fabiano(a)fidencio.org>
---
src/xenconfig/xen_common.c | 167 ++++++++++++++++++++++++---------------------
1 file changed, 89 insertions(+), 78 deletions(-)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano