tools/libxc: untangle libxenctrl from libxenguest
authorJuergen Gross <jgross@suse.com>
Fri, 28 Aug 2020 15:07:31 +0000 (17:07 +0200)
committerWei Liu <wl@xen.org>
Wed, 9 Sep 2020 10:57:25 +0000 (10:57 +0000)
commit7e0165c19387e8eece4c3b28d20f7fcc86533685
treea9067f85b4f48f3c7161b1c2981c6d8132a51848
parent068000ab05f8e8195762d3ba580758cd8ea0857b
tools/libxc: untangle libxenctrl from libxenguest

Sources of libxenctrl and libxenguest are completely entangled. In
practice libxenguest is a user of libxenctrl, so don't let any source
libxenctrl include xg_private.h.

This can be achieved by moving all definitions used by libxenctrl from
xg_private.h to xc_private.h.

Export xenctrl_dom.h as it will now be included by other public
headers.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
14 files changed:
tools/libxc/Makefile
tools/libxc/include/xenctrl_dom.h
tools/libxc/include/xenguest.h
tools/libxc/xc_core.c
tools/libxc/xc_core.h
tools/libxc/xc_core_arm.c
tools/libxc/xc_core_x86.c
tools/libxc/xc_domain.c
tools/libxc/xc_hcall_buf.c
tools/libxc/xc_private.c
tools/libxc/xc_private.h
tools/libxc/xc_resume.c
tools/libxc/xg_private.h
tools/libxc/xg_save_restore.h