On Thu, Nov 12, 2015 at 11:38 AM, George Dunlap <george.dun...@eu.citrix.com> wrote: >> +/* Parses usb data and adds info into usb >> + * Returns 1 if the input token does not match one of the keys >> + * or parsed values are not correct. Successful parse returns 0 */ >> +static int parse_usb_config(libxl_device_usb *usb, char *token) >> +{ >> + char *oparg; >> + >> + if (MATCH_OPTION("devtype", token, oparg)) { >> + if (!strcmp("hostdev", oparg)) { >> + usb->devtype = LIBXL_USBDEV_TYPE_HOSTDEV; > > Same thing here, with libxl_usbdev_type_to_string().
Obviously I mean "type_from_string" here. -G _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel