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 qemu/doc: Fix function name for handling events 2017-06-13 09:43:42 +02:00
libvirtd_qemu.aug Revert "qemu: Expose rx/tx_queue_size in qemu.conf too" 2018-02-12 14:56:29 +00:00
Makefile.inc.am qemu: Export qemuMigrationParams{To,From}JSON for tests 2018-04-17 10:46:23 +02:00
MIGRATION.txt doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00
qemu_agent.c util: Clean up consumers of virJSONValueArraySize 2018-05-10 14:59:15 -04:00
qemu_agent.h qemu: agent: Make setting of vcpus more robust 2016-06-22 09:26:08 +02:00
qemu_alias.c qemu/: Remove spaces after casts 2018-05-03 22:31:37 +02:00
qemu_alias.h qemu: different declarations for the same method 2018-03-12 11:02:09 +01:00
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: Introduce functions for input device cgroup manipulation 2017-11-24 17:38:51 +01:00
qemu_command.c Deprecate QEMU_CAPS_NESTING 2018-05-09 13:55:04 +02:00
qemu_command.h Revert "qemu: Expose rx/tx_queue_size in qemu.conf too" 2018-02-12 14:56:29 +00:00
qemu_conf.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
qemu_conf.h port allocator: make port range constant object 2018-02-22 13:52:45 +01:00
qemu_domain_address.c qemu/: Remove spaces after casts 2018-05-03 22:31:37 +02:00
qemu_domain_address.h qemu: Update qemuDomainFindSCSIControllerModel return 2018-01-31 11:32:04 -05:00
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 hostdev: Maintain a driver list of active mediated devices 2017-03-27 15:39:35 +02:00
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: stop passing virConnectPtr into qemuMonitorStartCPUs 2018-02-19 11:11:46 +00:00
qemu_monitor_text.h qemu: stop passing virConnectPtr into qemuMonitorStartCPUs 2018-02-19 11:11:46 +00:00
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: Move qemuFreeKeywords into qemu_parse_command.c 2017-10-17 18:52:47 -04:00
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: Return correct entry in virQEMUQAPISchemaTraverse 2018-03-23 14:52:07 +01:00
qemu_qapi.h qemu: monitor: Move processing of QMP schema to the new file 2018-03-23 14:52:07 +01:00
qemu_security.c qemu: fix security labeling for attach/detach of char devices 2017-12-05 13:54:48 +01:00
qemu_security.h qemu: fix security labeling for attach/detach of char devices 2017-12-05 13:54:48 +01:00
qemu.conf qemu: deny privilege elevation and spawn in seccomp 2018-04-17 16:29:38 +02:00
test_libvirtd_qemu.aug.in Revert "qemu: Expose rx/tx_queue_size in qemu.conf too" 2018-02-12 14:56:29 +00:00
THREADS.txt doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00