libvirt/src/qemu
John Ferlan 4a3d6ed5ee util: Clean up consumers of virJSONValueArraySize
Rather than have virJSONValueArraySize return a -1 when the input
is not an array and then splat an error message, let's check for
an array before calling and then change the return to be a size_t
instead of ssize_t.

That means using the helper virJSONValueIsArray as well as using a
more generic error message such as "Malformed <something> array".
In some cases we can remove stack variables and when we cannot,
those variables should be size_t not ssize_t. Alter a few references
of if (!value) to be if (value == 0) instead as well.

Some callers can already assume an array is being worked on based
on the previous call, so there's less to do.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2018-05-10 14:59:15 -04:00
..
EVENTHANDLERS.txt
libvirtd_qemu.aug
Makefile.inc.am qemu: Export qemuMigrationParams{To,From}JSON for tests 2018-04-17 10:46:23 +02:00
MIGRATION.txt
qemu_agent.c util: Clean up consumers of virJSONValueArraySize 2018-05-10 14:59:15 -04:00
qemu_agent.h
qemu_alias.c qemu/: Remove spaces after casts 2018-05-03 22:31:37 +02:00
qemu_alias.h
qemu_block.c qemu: block: Add support for creating 'format' layer for blockdev-add 2018-05-07 15:38:03 +02:00
qemu_block.h qemu: block: Add support for creating 'format' layer for blockdev-add 2018-05-07 15:38:03 +02:00
qemu_blockjob.c qemu: Remove parameter 'driver' from qemuBlockJobUpdate 2018-05-10 16:43:24 +02:00
qemu_blockjob.h qemu: Remove parameter 'driver' from qemuBlockJobUpdate 2018-05-10 16:43:24 +02:00
qemu_capabilities.c Deprecate QEMU_CAPS_NO_KVM_PIT 2018-05-07 10:33:13 +02:00
qemu_capabilities.h Deprecate QEMU_CAPS_NESTING 2018-05-09 13:55:04 +02:00
qemu_capspriv.h Force QMP capability probing 2018-04-10 15:16:23 +02:00
qemu_cgroup.c qemu_cgroup: Handle device mapper targets properly 2018-04-05 16:52:55 +02:00
qemu_cgroup.h
qemu_command.c Deprecate QEMU_CAPS_NESTING 2018-05-09 13:55:04 +02:00
qemu_command.h
qemu_conf.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
qemu_conf.h
qemu_domain_address.c qemu/: Remove spaces after casts 2018-05-03 22:31:37 +02:00
qemu_domain_address.h
qemu_domain.c qemu: domain: Replace qemuDomainFilePathIsHostCDROM with virFileIsCDROM 2018-05-09 13:04:33 +02:00
qemu_domain.h qemu: domain: Export qemuDomainDeviceDefValidateDisk 2018-05-07 15:41:15 +02:00
qemu_driver.c qemu: Remove parameter 'driver' from qemuBlockJobUpdate 2018-05-10 16:43:24 +02:00
qemu_driver.h
qemu_hostdev.c qemu/: Remove spaces after casts 2018-05-03 22:31:37 +02:00
qemu_hostdev.h
qemu_hotplug.c qemu/: Remove spaces after casts 2018-05-03 22:31:37 +02:00
qemu_hotplug.h qemu: don't pass virConnectPtr around for secrets 2018-02-19 11:11:47 +00:00
qemu_hotplugpriv.h
qemu_interface.c nwfilter: pass vm name in when instantiating filters 2018-05-03 17:00:57 +01:00
qemu_interface.h qemu: deprecate QEMU_CAPS_VHOST_NET 2018-04-16 15:00:26 +02:00
qemu_migration_cookie.c qemu: Add support for sending capabilities in migration cookie 2018-04-17 10:46:23 +02:00
qemu_migration_cookie.h qemu: Add support for sending capabilities in migration cookie 2018-04-17 10:46:23 +02:00
qemu_migration_params.c qemu: migration: Set the 'set' boolean in qemuMigrationParamsSetString 2018-04-27 15:14:05 +02:00
qemu_migration_params.h qemu: migration: Move and unexport qemuMigrationParamsSetString 2018-04-27 15:14:02 +02:00
qemu_migration_paramspriv.h qemu: Move migration capabilities JSON formatting 2018-04-17 10:46:23 +02:00
qemu_migration.c qemu: Remove parameter 'driver' from qemuBlockJobUpdate 2018-05-10 16:43:24 +02:00
qemu_migration.h qemu: Replace qemuMigrationAnyCompressionDump 2018-04-17 10:46:23 +02:00
qemu_monitor_json.c util: Clean up consumers of virJSONValueArraySize 2018-05-10 14:59:15 -04:00
qemu_monitor_json.h qemu: monitor: Add 'tls-creds' parameter to 'nbd-server-start' command 2018-04-30 14:57:53 +02:00
qemu_monitor_text.c
qemu_monitor_text.h
qemu_monitor.c qemu/: Remove spaces after casts 2018-05-03 22:31:37 +02:00
qemu_monitor.h qemu: monitor: Add 'tls-creds' parameter to 'nbd-server-start' command 2018-04-30 14:57:53 +02:00
qemu_parse_command.c qemu/: Remove spaces after casts 2018-05-03 22:31:37 +02:00
qemu_parse_command.h
qemu_process.c qemu/: Remove spaces after casts 2018-05-03 22:31:37 +02:00
qemu_process.h qemu: Store API flags for async jobs in qemuDomainJobObj 2018-04-17 10:46:23 +02:00
qemu_processpriv.h
qemu_qapi.c
qemu_qapi.h
qemu_security.c
qemu_security.h
qemu.conf qemu: deny privilege elevation and spawn in seccomp 2018-04-17 16:29:38 +02:00
test_libvirtd_qemu.aug.in
THREADS.txt