]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Separate domain post parse code into domain_postparse.c
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Jul 2022 08:03:33 +0000 (10:03 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Jul 2022 12:32:21 +0000 (14:32 +0200)
commitd9916c3519dd94362ba1251e68c34942ea3ebb6a
treed17e5a1454b54cac21c8ef1f8c8f1b22291d4ab3
parent531b62950f658ba79750c84f640d1e4a3ec44530
conf: Separate domain post parse code into domain_postparse.c

The domain post parse functions currently live in domain_conf.c
which thus grows always larger. Mimic what we've done for the
validation code and move the post parse code into a separate
file: domain_postparse.c.

I've started by moving every function with PostParse in its name
into the new file and then compile hunting for helper functions
only to move them as well.

In the end, I've moved virDomainDefPostParse symbol in
libvirt_private.syms into a new section. And while
virDomainDeviceDefPostParseOne() is made 'public' in
domain_postparse.h too, I'm not exporting it because it has no
caller outside src/conf/ and it's unlikely it ever will.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
13 files changed:
po/POTFILES
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/domain_postparse.c [new file with mode: 0644]
src/conf/domain_postparse.h [new file with mode: 0644]
src/conf/meson.build
src/libvirt_private.syms
src/libxl/xen_xl.c
src/libxl/xen_xm.c
src/lxc/lxc_native.c
src/qemu/qemu_driver.c
src/qemu/qemu_process.c
src/vmx/vmx.c