Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
libvirt-cim
graphics-device.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File graphics-device.patch of Package libvirt-cim
Index: libvirt-cim-0.5.2/libxkutil/device_parsing.c =================================================================== --- libvirt-cim-0.5.2.orig/libxkutil/device_parsing.c +++ libvirt-cim-0.5.2/libxkutil/device_parsing.c @@ -75,6 +75,7 @@ static void cleanup_graphics_device(stru { free(dev->type); free(dev->port); + free(dev->host); } void cleanup_virt_device(struct virt_device *dev) @@ -440,10 +441,14 @@ static int parse_graphics_device(xmlNode gdev->type = get_attr_value(node, "type"); gdev->port = get_attr_value(node, "port"); + gdev->host = get_attr_value(node, "listen"); if ((gdev->type == NULL) || (gdev->port == NULL)) goto err; + if (gdev->host == NULL) + gdev->host = strdup("127.0.0.1"); + vdev->type = CIM_RES_TYPE_GRAPHICS; *vdevs = vdev; @@ -623,6 +628,7 @@ struct virt_device *virt_device_dup(stru } else if (dev->type == CIM_RES_TYPE_GRAPHICS) { DUP_FIELD(dev, _dev, dev.graphics.type); DUP_FIELD(dev, _dev, dev.graphics.port); + DUP_FIELD(dev, _dev, dev.graphics.host); } return dev; Index: libvirt-cim-0.5.2/libxkutil/device_parsing.h =================================================================== --- libvirt-cim-0.5.2.orig/libxkutil/device_parsing.h +++ libvirt-cim-0.5.2/libxkutil/device_parsing.h @@ -62,6 +62,7 @@ struct emu_device { struct graphics_device { char *type; char *port; + char *host; }; struct virt_device {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor