diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-08-19 15:25:15 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-08-19 15:25:15 +0100 |
commit | 10cf11b43638a854e372e39275edb7863614a7b9 (patch) | |
tree | 9c96bae68871baf1b0df633c6382b9c98b6f04be /tools/libxl/libxl_bootloader.c | |
parent | 60ce81bc56b4b8a997a7d8791390d3da1a389a71 (diff) | |
download | xen-10cf11b43638a854e372e39275edb7863614a7b9.tar.gz xen-10cf11b43638a854e372e39275edb7863614a7b9.tar.bz2 xen-10cf11b43638a854e372e39275edb7863614a7b9.zip |
libxl: implement destroy for libxl_file_reference builtin type
As well as freeing data any file mappings need to be torn down so
implement an explicit destroy function.
Also the map and unmap function are internal to libxl so make that so.
[PATCH 09 of 16 of
libxl: autogenerate type definitions and destructor functions]
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_bootloader.c')
-rw-r--r-- | tools/libxl/libxl_bootloader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxl/libxl_bootloader.c b/tools/libxl/libxl_bootloader.c index e7e88ce3d1..08d6a22274 100644 --- a/tools/libxl/libxl_bootloader.c +++ b/tools/libxl/libxl_bootloader.c @@ -279,12 +279,12 @@ static void parse_bootloader_result(libxl_ctx *ctx, if (strncmp("kernel ", o, strlen("kernel ")) == 0) { free(info->kernel.path); info->kernel.path = strdup(o + strlen("kernel ")); - libxl_file_reference_map(ctx, &info->kernel); + libxl__file_reference_map(&info->kernel); unlink(info->kernel.path); } else if (strncmp("ramdisk ", o, strlen("ramdisk ")) == 0) { free(info->u.pv.ramdisk.path); info->u.pv.ramdisk.path = strdup(o + strlen("ramdisk ")); - libxl_file_reference_map(ctx, &info->u.pv.ramdisk); + libxl__file_reference_map(&info->u.pv.ramdisk); unlink(info->u.pv.ramdisk.path); } else if (strncmp("args ", o, strlen("args ")) == 0) { free(info->u.pv.cmdline); |