From 538eeaaba3cef3240c753120797766d654eccbcf Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 10 Dec 2015 14:26:39 +0100 Subject: [PATCH] also add the generic usb: wildcard matcher --- libgphoto2_port/vusb/vusb.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libgphoto2_port/vusb/vusb.c b/libgphoto2_port/vusb/vusb.c index 8ca919a95..3b0a9a4c6 100644 --- a/libgphoto2_port/vusb/vusb.c +++ b/libgphoto2_port/vusb/vusb.c @@ -80,6 +80,13 @@ gp_port_library_list (GPPortInfoList *list) GPPortInfo info; gp_log(GP_LOG_DEBUG,__FUNCTION__,"()"); + + CHECK (gp_port_info_new (&info)); + gp_port_info_set_type (info, GP_PORT_USB); + gp_port_info_set_name (info, ""); + gp_port_info_set_path (info, "^usb:"); + CHECK (gp_port_info_list_append (list, info)); + gp_port_info_new (&info); gp_port_info_set_type (info, GP_PORT_USB); gp_port_info_set_name (info, "Universal Serial Bus");