add a regexp matcher for usbscsi:.*
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13447 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -228,6 +228,13 @@ gp_port_library_list (GPPortInfoList *list)
|
||||
CHECK (gp_port_info_list_append (list, info))
|
||||
}
|
||||
closedir (dir);
|
||||
|
||||
/* generic matcher. This will catch passed usbscsi: entries for instance. */
|
||||
gp_port_info_new (&info);
|
||||
gp_port_info_set_type (info, GP_PORT_USB_SCSI);
|
||||
gp_port_info_set_name (info, "");
|
||||
gp_port_info_set_path (info, "^usbscsi:");
|
||||
CHECK (gp_port_info_list_append (list, info));
|
||||
return GP_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user