]> git.ipfire.org Git - thirdparty/libvirt.git/commit
seclabel: refactor existing domain_conf usage
authorEric Blake <eblake@redhat.com>
Fri, 23 Dec 2011 00:47:47 +0000 (17:47 -0700)
committerDaniel Veillard <veillard@redhat.com>
Fri, 30 Dec 2011 02:38:37 +0000 (10:38 +0800)
commit336df7966b459cc0e253d73b6e41db5fe68a820e
tree9d8ffa8546867f6002847381a0c09245c995b8d0
parent116d6af9791cf535e7e4e501db54ad0266300be1
seclabel: refactor existing domain_conf usage

A future patch will parse and output <seclabel> in more than one
location in a <domain> xml; make it easier to reuse code.

* src/conf/domain_conf.c (virSecurityLabelDefFree): Rename...
(virSecurityLabelDefClear): ...and make static.
(virSecurityLabelDefParseXML): Alter signature.
(virDomainDefParseXML, virDomainDefFree): Adjust callers.
(virDomainDefFormatInternal): Split output...
(virSecurityLabelDefFormat): ...into new helper.
src/conf/domain_conf.c