[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Provide dm_vnc() as a in libxl helper.
# HG changeset patch # User Anthony PERARD <anthony.perard@xxxxxxxxxx> # Date 1329763529 0 # Node ID 2c2afbd7cef7f497423fedb5ffe2af3b4df6f133 # Parent a2d15eaa2fe2870898391ec608ed5449c04e6ace Provide dm_vnc() as a in libxl helper. Just to use this function in more than one file.c. Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell.com> Committed-by: Ian Jackson <ian.jackson.citrix.com> --- diff -r a2d15eaa2fe2 -r 2c2afbd7cef7 tools/libxl/libxl_dm.c --- a/tools/libxl/libxl_dm.c Mon Feb 20 18:45:28 2012 +0000 +++ b/tools/libxl/libxl_dm.c Mon Feb 20 18:45:29 2012 +0000 @@ -73,7 +73,7 @@ } } -static const libxl_vnc_info *dm_vnc(const libxl_domain_config *guest_config) +const libxl_vnc_info *libxl__dm_vnc(const libxl_domain_config *guest_config) { const libxl_vnc_info *vnc = NULL; if (guest_config->b_info.type == LIBXL_DOMAIN_TYPE_HVM) { @@ -113,7 +113,7 @@ const libxl_domain_create_info *c_info = &guest_config->c_info; const libxl_domain_build_info *b_info = &guest_config->b_info; const libxl_device_nic *vifs = guest_config->vifs; - const libxl_vnc_info *vnc = dm_vnc(guest_config); + const libxl_vnc_info *vnc = libxl__dm_vnc(guest_config); const libxl_sdl_info *sdl = dm_sdl(guest_config); const int num_vifs = guest_config->num_vifs; const char *keymap = dm_keymap(guest_config); @@ -328,7 +328,7 @@ const libxl_device_nic *vifs = guest_config->vifs; const int num_disks = guest_config->num_disks; const int num_vifs = guest_config->num_vifs; - const libxl_vnc_info *vnc = dm_vnc(guest_config); + const libxl_vnc_info *vnc = libxl__dm_vnc(guest_config); const libxl_sdl_info *sdl = dm_sdl(guest_config); const char *keymap = dm_keymap(guest_config); flexarray_t *dm_args; @@ -890,7 +890,7 @@ libxl_ctx *ctx = libxl__gc_owner(gc); const libxl_domain_create_info *c_info = &guest_config->c_info; const libxl_domain_build_info *b_info = &guest_config->b_info; - const libxl_vnc_info *vnc = dm_vnc(guest_config); + const libxl_vnc_info *vnc = libxl__dm_vnc(guest_config); char *path, *logfile; int logfile_w, null; int rc; diff -r a2d15eaa2fe2 -r 2c2afbd7cef7 tools/libxl/libxl_internal.h --- a/tools/libxl/libxl_internal.h Mon Feb 20 18:45:28 2012 +0000 +++ b/tools/libxl/libxl_internal.h Mon Feb 20 18:45:29 2012 +0000 @@ -903,6 +903,8 @@ _hidden int libxl__destroy_device_model(libxl__gc *gc, uint32_t domid); +_hidden const libxl_vnc_info *libxl__dm_vnc(const libxl_domain_config *g_cfg); + _hidden char *libxl__abs_path(libxl__gc *gc, const char *s, const char *path); #define LIBXL__LOG_DEBUG XTL_DEBUG _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |