From: Ian Jackson Subject: [PATCH] libxl: Provide doc comments for AO_GC and STATE_AO_GC Date: Mon, 6 Jul 2015 16:52:30 +0100 Message-ID: <1436197950-19933-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com Cc: Andrew Cooper , Ian Jackson List-Id: xen-devel@lists.xenproject.org CC: Andrew Cooper Signed-off-by: Ian Jackson --- 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