]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Extract parsing of qemu namespace env vars into separate function
authorPeter Krempa <pkrempa@redhat.com>
Mon, 17 Jun 2019 13:41:50 +0000 (15:41 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 21 Jun 2019 13:24:06 +0000 (15:24 +0200)
commita858b77754657c99aa377290b284abe9cd9f5eef
treee794466ecb83bfa538ede1bd3fd0d84bdae26ec9
parent3f76419a05690ad46c61d62a7c052343a7170adb
qemu: Extract parsing of qemu namespace env vars into separate function

Simplify the main function by splitting out how we parse the extra
passthrough environment variables.

Note that the validation function checks that the first letter must be a
character or underscore which makes the check whether the name is
redundant.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c