libvirt/src/xenconfig
Fabiano Fidêncio 5f0c1c1e25 xen_common: Change xenParsePCIList to use virConfGetValueStringList
The `if(!list || list->type != VIR_CONF_LIST)` check couldn't be
written in a 100% similar way. Instead, we're just checking whether
`virConfGetValueStringList() <= 0` and creating a new function to:
- return -1 in case virConfGetValueStringList fails either due to some
  allocation failure or when traversing the list;
- resetting the last error and return 0 otherwise;

Taking this approach we can have the behaviour with the new code as
close as possible to the old one.

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
2018-09-20 16:39:09 -04:00
..
Makefile.inc.am make: split xenconfig driver build rules into xenconfig/Makefile.inc.am 2018-02-23 13:14:26 +00:00
xen_common.c xen_common: Change xenParsePCIList to use virConfGetValueStringList 2018-09-20 16:39:09 -04:00
xen_common.h xen_common: Change xenConfigGetString to use virConfGetValueString 2018-09-20 16:39:01 -04:00
xen_sxpr.c src: Make virStr*cpy*() functions return an int 2018-07-23 14:27:30 +02:00
xen_sxpr.h
xen_xl.c xen_common: Change xenConfigGetString to use virConfGetValueString 2018-09-20 16:39:01 -04:00
xen_xl.h xenconfig: remove my name and email from files 2018-05-08 13:45:51 +01:00
xen_xm.c xen_common: Change xenConfigGetString to use virConfGetValueString 2018-09-20 16:39:01 -04:00
xen_xm.h
xenxs_private.h