]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ch: refactor virCHMonitorBuildDiskJson
authorStefan Kober <stefan.kober@cyberus-technology.de>
Thu, 4 Sep 2025 12:10:26 +0000 (14:10 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 8 Sep 2025 14:40:08 +0000 (16:40 +0200)
commite285053dc730bef0e37e627cb58314741f611e6d
tree846aaca8250caeca9e3c8ace1a823d971dfbbd16
parentc90b6ff46a4a68d5642d418ea34f700009e93c0a
ch: refactor virCHMonitorBuildDiskJson

Refactor BuildDiskJson to return a virJSONValue instead of adding the
disk json to an json array. This makes the function reusable for
hotplugging disks.

On-behalf-of: SAP stefan.kober@sap.com
Signed-off-by: Stefan Kober <stefan.kober@cyberus-technology.de>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/ch/ch_monitor.c