libvirt/src/libxl
Andrea Bolognani 6c0d0210cb src: Make virStr*cpy*() functions return an int
Currently, the functions return a pointer to the
destination buffer on success or NULL on failure.

Not only does this kind of error handling look quite
alien in the context of libvirt, where most functions
return zero on success and a negative int on failure,
but it's also somewhat pointless because unless there's
been a failure the returned pointer will be the same
one passed in by the user, thus offering no additional
value.

Change the functions so that they return an int
instead.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2018-07-23 14:27:30 +02:00
..
libvirtd_libxl.aug libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00
libxl_capabilities.c cpu: Drop unused parameter from cpuDecode 2017-10-16 09:21:52 +02:00
libxl_capabilities.h
libxl_conf.c src: Make virStr*cpy*() functions return an int 2018-07-23 14:27:30 +02:00
libxl_conf.h libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00
libxl_domain.c events: remove libxlDomainEventQueue wrapper func 2018-06-13 08:42:53 +02:00
libxl_domain.h events: remove libxlDomainEventQueue wrapper func 2018-06-13 08:42:53 +02:00
libxl_driver.c events: remove libxlDomainEventQueue wrapper func 2018-06-13 08:42:53 +02:00
libxl_driver.h
libxl_logger.c libxl: define a per-domain logger. 2017-01-11 09:32:47 +01:00
libxl_logger.h libxl: define a per-domain logger. 2017-01-11 09:32:47 +01:00
libxl_migration.c events: remove libxlDomainEventQueue wrapper func 2018-06-13 08:42:53 +02:00
libxl_migration.h libxl: rename migration APIs to include Src or Dst in their name 2018-03-21 12:59:31 -06:00
libxl.conf libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00
Makefile.inc.am make: split libxl driver build rules into libxl/Makefile.inc.am 2018-02-23 13:14:26 +00:00
test_libvirtd_libxl.aug.in libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00