Skip to contentSkip to conversation

libxl: Provide doc comments for AO_GC and STATE_AO_GC

PATCH Applied Ian Jackson 2 participants 3 messages Jul 6, 2015 – Jul 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxl: Provide doc comments for AO_GC and STATE_AO_GC

---
 tools/libxl/libxl_internal.h |   13 +++++++++++++
 1 file changed, 13 insertions(+)
tools/libxl/libxl_internal.h +13 -0
index d52589e..6113bb6 100644
@@ -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)
Signature · 1 line
1.7.10.4