]> xenbits.xensource.com Git - libvirt.git/commit
qemu: monitor: Extract handling of JSON block job error codes
authorPeter Krempa <pkrempa@redhat.com>
Tue, 31 Mar 2015 15:13:21 +0000 (17:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 14 Apr 2015 08:00:56 +0000 (10:00 +0200)
commit7db64d6b0ae23798e9162588052818b54f62574b
tree3a57413a2c22da6c098858a22aca5fffc2ee7e66
parent72613b18ac91add555688acc109f4171bdef4061
qemu: monitor: Extract handling of JSON block job error codes

My intention is to split qemuMonitorJSONBlockJob() into simpler separate
functions for every block job type. Since the error handling code is the
same for all block jobs, this patch extracts the code into a separate
function that will later be reused in more places.

With the new helper qemuMonitorJSONErrorIsClass we can save a few
function calls as we can extract the error object once.
src/qemu/qemu_monitor_json.c