search for: libxl_device_usb_type_hostdev

Displaying 1 result from an estimated 1 matches for "libxl_device_usb_type_hostdev".

2013 Apr 18
9
[PATCH v5 1/2] libxl: Introduce functions to add and remove USB devices to an HVM guest
..._add_string(gc, &args, "id", id); + + return qmp_run_command(gc, domid, "device_add", args, NULL, NULL); +} + +int libxl__qmp_usb_add(libxl__gc *gc, int domid, + libxl__device_usb *usbdev) +{ + int rc; + switch(usbdev->type) { + case LIBXL_DEVICE_USB_TYPE_HOSTDEV: + rc = libxl__qmp_usb_hostdev_add(gc, domid, usbdev); + break; + default: + return ERROR_INVAL; + } + return rc; +} + + +static int libxl__qmp_usb_hostdev_remove(libxl__gc *gc, int domid, + libxl__device_usb *dev) +{ + libxl__json_obje...