CC: Andrew Cooper <andrew.coop...@citrix.com> Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com> --- tools/libxl/libxl_internal.h | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index d52589e..6113bb6 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -2068,9 +2068,22 @@ _hidden void libxl__egc_cleanup(libxl__egc *egc); (rc); \ }) + +/* + * Given, in scope, + * libxl__ao *ao; + * produces, in scope, + * libxl__gc *gc; + */ #define AO_GC \ libxl__gc *const gc __attribute__((unused)) = &ao->gc +/* + * void STATE_AO_GC(libxl__ao *ao_spec); + * // Produces, in scope: + * libxl__ao *ao; // set from ao_spec + * libxl__gc *gc; + */ #define STATE_AO_GC(op_ao) \ libxl__ao *const ao = (op_ao); \ libxl__gc *const gc __attribute__((unused)) = libxl__ao_inprogress_gc(ao) -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel