]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src/xenconfig: move common parsing/formatting to xen_common
authorJim Fehlig <jfehlig@suse.com>
Sat, 16 Aug 2014 02:52:15 +0000 (20:52 -0600)
committerJim Fehlig <jfehlig@suse.com>
Tue, 19 Aug 2014 02:47:38 +0000 (20:47 -0600)
commit337a1362824d29733f61778fc8e2a5f1d3fa9f09
tree3fba803a955814f4598f2ba78fea947a74ad0e9f
parentf67bf6e9b5ab506ef5d4899ceb8146af92197973
src/xenconfig: move common parsing/formatting to xen_common

XM and XL config are very similar.  Disks are specified differently
in XL, but the old XM disk config is still supported by XL.  XL also
supports new config like spice that was never supported by XM.

This patch moves all the common parsing and formatting functions to
the new file xen_common.c and adapts the XM parser/formatter accordingly.
This restructuring paves way for introducing an XL parser/formatter in
the future.

While moving the code, fixup whitespace, comments, and style issues.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
po/POTFILES.in
src/Makefile.am
src/xenconfig/xen_common.c [new file with mode: 0644]
src/xenconfig/xen_common.h [new file with mode: 0644]
src/xenconfig/xen_xm.c
src/xenconfig/xen_xm.h