Displaying 5 results from an estimated 5 matches for "string_of_uuid".
2010 Aug 13
3
[PATCH] xl: make libxl_uuid2string internal to libxenlight
....c Fri Aug 13 15:32:31 2010 +0100
@@ -442,19 +442,12 @@ int save_device_model(libxl_ctx *ctx, ui
return 0;
}
-char *libxl_uuid2string(libxl_ctx *ctx, const libxl_uuid uuid)
+char *libxl_uuid2string(libxl_gc *gc, const libxl_uuid uuid)
{
- libxl_gc gc = LIBXL_INIT_GC(ctx);
- char *s = string_of_uuid(&gc, uuid);
- char *ret;
- if (!s) {
- XL_LOG(ctx, XL_LOG_ERROR, "cannot allocate for uuid");
- ret = NULL;
- }else{
- ret = strdup(s);
- }
- libxl_free_all(&gc);
- return ret;
+ char *s = string_of_uuid(gc, uuid);
+ if (!s)
+ XL...
2011 Nov 29
6
[OCAML 0/7] V4 or so of the xen ocaml packaging patches
Here is the latest version of the patches to package the ocaml libraries. Changes
since last time:
* rename the packages from libxen-4.1-ocaml* to libxen-ocaml* - we wont be
looking to install multiple concurrent versions of the same package, so
the version doesn't need to be in the package name
* Removed superfluous GENCONTROL definitions - dh_ocaml does what we need
* Removed
2011 Nov 15
6
[OCAML 0/7] Xen ocaml library packaging
This is an update to the patches sent out on 25th October. I expect,
as before, that some of the larger patches won't get to the list so
they are also available here:
https://github.com/jonludlam/pkg-xen/commits/for-debian6.
Changes since last mail:
* I have split out the unrelated change to include 2 extra header files
in libxen-dev
* I have removed some instances of brace expansion
2011 Oct 25
14
[PATCH 0/9] Package the ocaml libraries
The following set of patches package up the ocaml libraries that are
part of the standard xen build. The patches are also currently available
at: https://github.com/jonludlam/pkg-xen/commits/for-debian
There are some things to note:
1. The 5 patches imported from xen-unstable are not, and will not go
into the xen-4.1-stable series. However, the patches were created
at the request of the
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...u state");
- if (c)
+ if (c) {
+ libxl_free_all(&gc);
return c;
+ }
}
close(fd2);
unlink(filename);
+ libxl_free_all(&gc);
return 0;
}
-char *libxl_uuid2string(libxl_ctx *ctx, const libxl_uuid uuid) {
- char *s = string_of_uuid(ctx, uuid);
- if (!s) XL_LOG(ctx, XL_LOG_ERROR, "cannot allocate for uuid");
- return s;
+char *libxl_uuid2string(libxl_ctx *ctx, const libxl_uuid uuid)
+{
+ libxl_gc gc = LIBXL_INIT_GC(ctx);
+ char *s = string_of_uuid(&gc, uuid);
+ char *ret;
+ if (!s) {
+ XL...