aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2011-09-17 06:57:30 -0600
committerEric Blake <eblake@redhat.com>2011-10-20 16:02:16 -0600
commit9cba3927684f7fe46872fae74843087139a4cca2 (patch)
tree3baa6b782532bc8066084bbe4d239af1a7111282 /.gitignore
parentvirbuf: add auto-indentation support (diff)
downloadlibvirt-9cba3927684f7fe46872fae74843087139a4cca2.tar.gz
libvirt-9cba3927684f7fe46872fae74843087139a4cca2.tar.bz2
libvirt-9cba3927684f7fe46872fae74843087139a4cca2.zip
snapshot: indent domain xml when nesting
<domainsnapshot> is the first public instance of <domain> being used as a sub-element, although we have two other private uses (runtime state, and migration cookie). Although indentation has no effect on XML parsing, using it makes the output more consistent. This uses virBuffer auto-indentation to obtain the effect, for all but the portions of <domain> that are not generated a line at a time into the same virBuffer. Further patches will clean up the remaining problems. * src/conf/domain_conf.h (virDomainDefFormatInternal): New prototype. * src/conf/domain_conf.c (virDomainDefFormatInternal): Export. (virDomainObjFormat, virDomainSnapshotDefFormat): Update callers. * src/libvirt_private.syms (domain_conf.h): Add new export. * src/qemu/qemu_migration.c (qemuMigrationCookieXMLFormat): Use new function. (qemuMigrationCookieXMLFormatStr): Update caller.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions