]> xenbits.xensource.com Git - people/larsk/xen.git/commit
libxl: move DEFINE_DEVICE* macros to libxl_internal.h
authorJuergen Gross <jgross@suse.com>
Wed, 6 Jul 2016 14:55:34 +0000 (16:55 +0200)
committerWei Liu <wei.liu2@citrix.com>
Tue, 12 Jul 2016 11:54:07 +0000 (12:54 +0100)
commit22ea8ad02e465e32cd40887c750b55c3a997a288
tree36ea2c0f8403866701de85440c6ee85346f511fc
parent2c2c33f038c889acc9f73681c09320164516da47
libxl: move DEFINE_DEVICE* macros to libxl_internal.h

In order to be able to have all functions related to a device type in
a single source file move the macros used to generate device type
specific functions to libxl_internal.h. Rename the macros as they are
no longer local to a source file. While at it hide device remove and
device destroy in one macro as those are always used in pairs. Move
usage of the macros to the appropriate source files.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_pvusb.c