switch (type) {
case DEVICE_TYPE_DISK:
return _("Disk");
+ case DEVICE_TYPE_USB:
+ return _("USB");
case DEVICE_TYPE_OPTICAL:
- return _("Optical");
+ return _("CD/DVD");
case DEVICE_TYPE_NETWORK:
return _("Network");
case DEVICE_TYPE_ANY:
switch (type) {
case DEVICE_TYPE_DISK:
return "disk";
+ case DEVICE_TYPE_USB:
+ return "usb";
case DEVICE_TYPE_OPTICAL:
return "optical";
case DEVICE_TYPE_NETWORK:
{
if (!strncmp(str, "disk", strlen("disk")))
return DEVICE_TYPE_DISK;
+ if (!strncmp(str, "usb", strlen("usb")))
+ return DEVICE_TYPE_USB;
if (!strncmp(str, "optical", strlen("optical")))
return DEVICE_TYPE_OPTICAL;
if (!strncmp(str, "network", strlen("network")))