diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-01-05 08:39:40 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-01-05 08:39:40 +0000 |
commit | 696b09d8dd27654f4b50f5d2d158ee9bfe008aab (patch) | |
tree | 38304324ef7163ef518a84c1d7dc76b31eedd90c /tools/libxl/libxl_utils.h | |
parent | 3f85a1728bf564b960005db42e43f7bb4fa7908a (diff) | |
download | xen-696b09d8dd27654f4b50f5d2d158ee9bfe008aab.tar.gz xen-696b09d8dd27654f4b50f5d2d158ee9bfe008aab.tar.bz2 xen-696b09d8dd27654f4b50f5d2d158ee9bfe008aab.zip |
libxenlight: remove any uuid dependancies from xl
uuid handles in create and now create_device_model need to fill the
uuid field by client. the uuid field happens to be the exact same size
as the standard uuid (sixteen 8 bits values).
stubdom need to have a uuid when created, so using the one in
create_device_model.
this permits the client library to generate the uuid in any way it see
fits (even if it's not compliant to any standard), and simplify
installation of the libxenlight header.
xl converted from libuuid generated uuid to generated through random()
C call. need to be fixed if anyone plan to use xl for anything
seriously apart from developing libxl.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_utils.h')
-rw-r--r-- | tools/libxl/libxl_utils.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/libxl/libxl_utils.h b/tools/libxl/libxl_utils.h index 50fc0f893c..85bd257c2c 100644 --- a/tools/libxl/libxl_utils.h +++ b/tools/libxl/libxl_utils.h @@ -18,17 +18,9 @@ #include "libxl.h" -#define UUID_FMT "%02hhx%02hhx%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx" - unsigned long libxl_get_required_shadow_memory(unsigned long maxmem_kb, unsigned int smp_cpus); int libxl_name_to_domid(struct libxl_ctx *ctx, char *name, uint32_t *domid); char *libxl_domid_to_name(struct libxl_ctx *ctx, uint32_t domid); -int libxl_uuid_to_domid(struct libxl_ctx *ctx, xen_uuid_t *uuid, uint32_t *domid); -int libxl_domid_to_uuid(struct libxl_ctx *ctx, xen_uuid_t **uuid, uint32_t domid); -int libxl_is_uuid(char *s); -xen_uuid_t *libxl_string_to_uuid(struct libxl_ctx *ctx, char *s); -char *libxl_uuid_to_string(struct libxl_ctx *ctx, xen_uuid_t *uuid); -int libxl_param_to_domid(struct libxl_ctx *ctx, char *p, uint32_t *domid); int libxl_get_stubdom_id(struct libxl_ctx *ctx, int guest_domid); int libxl_is_stubdom(struct libxl_ctx *ctx, int domid); int libxl_create_logfile(struct libxl_ctx *ctx, char *name, char **full_name); |