diff options
author | Paul Durrant <paul.durrant@citrix.com> | 2017-03-07 10:55:30 +0000 |
---|---|---|
committer | Stefano Stabellini <sstabellini@kernel.org> | 2017-03-22 11:47:39 -0700 |
commit | 260cabed718c4d3137553a4a98de268b0fb166b7 (patch) | |
tree | ee422eb7020345a3d3746dfad26c92652be48ae1 /xen-common.c | |
parent | 55a19ad8b2d0797e3a8fe90ab99a9bb713824059 (diff) |
xen: make use of xen_xc implicit in xen_common.h inlines
Doing this will make the transition to using the new libxendevicemodel
interface less intrusive on the callers of these functions, since using
the new library will require a change of handle.
NOTE: The patch also moves the 'externs' for xen_xc and xen_fmem from
xen_backend.h to xen_common.h, and the declarations from
xen_backend.c to xen-common.c, which is where they belong.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Anthony Perard <anthony.perard@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'xen-common.c')
-rw-r--r-- | xen-common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xen-common.c b/xen-common.c index fd2c92847e..703e7a5861 100644 --- a/xen-common.c +++ b/xen-common.c @@ -25,6 +25,9 @@ do { } while (0) #endif +xc_interface *xen_xc; +xenforeignmemory_handle *xen_fmem; + static int store_dev_info(int domid, Chardev *cs, const char *string) { struct xs_handle *xs = NULL; |