]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: add virDomainDefAddController()
authorLaine Stump <laine@laine.org>
Fri, 6 Nov 2015 18:01:29 +0000 (13:01 -0500)
committerLaine Stump <laine@laine.org>
Mon, 11 Jan 2016 18:08:26 +0000 (13:08 -0500)
commited64d92beac1070eaa632f0213a738754c4b8a74
treef7c91c234eb30b5756f424ecfe5ac5e7562fd351
parent163338ec28857a5c61b38be5b3bf6c52c8b63877
conf: add virDomainDefAddController()

We need a virDomainDefAddController() that doesn't check for an
existing controller at the same index (since USB2 controllers must be
added in sets of 4 that are all at the same index), so rather than
duplicating the code in virDomainDefMaybeAddController(), split it
into two functions, in the process eliminating existing duplicated
code that loops through the controller list by calling
virDomainControllerFind(), which does the same thing).
src/conf/domain_conf.c