]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: multi-value virTypedParameter
authorPavel Boldin <pboldin@mirantis.com>
Mon, 15 Jun 2015 22:42:06 +0000 (01:42 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 18 Jun 2015 14:46:09 +0000 (16:46 +0200)
commita5250449de8d570992744f309fefaaaa6f8212cd
treeead02cfcf117fc021f99eda9b31d7053e2ab9f07
parentcb7297c150639e9f70e414f3a82d1cde9fa3d9d6
util: multi-value virTypedParameter

The `virTypedParamsValidate' function now can be instructed to allow
multiple entries for some of the keys. For this flag the type with
the `VIR_TYPED_PARAM_MULTIPLE' flag.

Add unit tests for this new behaviour.

Signed-off-by: Pavel Boldin <pboldin@mirantis.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virtypedparam.c
src/util/virtypedparam.h
tests/Makefile.am
tests/virtypedparamtest.c [new file with mode: 0644]