aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_bootloader.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-03-15 18:20:46 +0000
committerIan Campbell <ian.campbell@citrix.com>2011-03-15 18:20:46 +0000
commiteca0cebba197edbc6aa452c86e8019ab8b955c81 (patch)
treec247db45b9291d2e8f66aee6416242413150a622 /tools/libxl/libxl_bootloader.c
parentd9e46835ab53a135e979cb7eb6febc5dc6f71a85 (diff)
downloadxen-eca0cebba197edbc6aa452c86e8019ab8b955c81.tar.gz
xen-eca0cebba197edbc6aa452c86e8019ab8b955c81.tar.bz2
xen-eca0cebba197edbc6aa452c86e8019ab8b955c81.zip
libxl: Make all hidden/static functions take a gc not a ctx
Also ensure that static and hidden functions use the libxl__ prefix not just libxl_ (in the case of static functions only when they use a libxl prefix to start with). This follows the policy described in libxl.h "libxl memory management". Based on a manual audit of: grep ^static tools/libxl/libxl*.[ch]| grep libxl_ctx grep libxl__ tools/libxl/*.h| grep libxl_ctx Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_bootloader.c')
-rw-r--r--tools/libxl/libxl_bootloader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxl/libxl_bootloader.c b/tools/libxl/libxl_bootloader.c
index b7a0ba00de..133a11e486 100644
--- a/tools/libxl/libxl_bootloader.c
+++ b/tools/libxl/libxl_bootloader.c
@@ -271,7 +271,7 @@ out_err:
return NULL;
}
-static void parse_bootloader_result(libxl_ctx *ctx,
+static void parse_bootloader_result(libxl__gc *gc,
libxl_domain_build_info *info,
const char *o)
{
@@ -414,7 +414,7 @@ int libxl_run_bootloader(libxl_ctx *ctx,
goto out_close;
}
- parse_bootloader_result(ctx, info, blout);
+ parse_bootloader_result(&gc, info, blout);
rc = 0;
out_close: