]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Allow qemuBuildControllerDevStr() to return NULL
authorAndrea Bolognani <abologna@redhat.com>
Tue, 28 Feb 2017 09:46:30 +0000 (10:46 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Sat, 15 Jul 2017 12:50:42 +0000 (14:50 +0200)
commit0e943cec9e0ce10565fa4d94b06eae4e46a2925d
tree2c163a2f350c045c132d0f69f11cd9e3abbd4c3b
parent2bd0658d7cc886209a53bae23c20adbb7d4f91ac
qemu: Allow qemuBuildControllerDevStr() to return NULL

We will soon need to be able to return a NULL pointer
without the caller considering that an error: to make
it possible, change the return type to int and use
an out parameter for the string instead.

Add some documentation for the function as well.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Laine Stump <laine@laine.org>
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_hotplug.c