Changeset 36958 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- May 4, 2011 2:50:32 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 71554
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/USBGetDevices.h
r34341 r36958 75 75 RT_C_DECLS_BEGIN 76 76 77 /** List of well-known USB device tree locations */78 typedef struct USBDEVTREELOCATION79 {80 /** The root of the device tree for this location. */81 char szDevicesRoot[256];82 /** Whether this location requires device enumeration using sysfs. */83 bool fUseSysfs;84 } USBDEVTREELOCATION, *PUSBDEVTREELOCATION;85 typedef const USBDEVTREELOCATION *PCUSBDEVTREELOCATION;86 87 77 /** 88 * Get the USB device tree root89 * @param fPreferSysfs whether we wish to use sysfs over usbfs for90 * enumeration if we have the choice91 * @note 78 * Check whether a USB device tree root is usable 79 * @param pcszRoot the path to the root of the device tree 80 * @param fIsDeviceNodes whether this is a device node (or usbfs) tree 81 * @note returns a pointer into a static array so it will stay valid 92 82 */ 93 extern PCUSBDEVTREELOCATION USBProxyLinuxGetDeviceRoot(bool fPreferSysfs); 83 extern bool USBProxyLinuxCheckDeviceRoot(const char *pcszRoot, 84 bool fIsDeviceNodes); 94 85 95 86 /** … … 97 88 * @a deviceFree or something equivalent. 98 89 * @param pcszDevicesRoot the path to the root of the device tree 99 * @param fUseSysfs whether to use sysfs (or usbfs) for enumeration90 * @param fUseSysfs whether to use sysfs (or usbfs) for enumeration 100 91 */ 101 92 extern PUSBDEVICE USBProxyLinuxGetDevices(const char *pcszDevicesRoot,
Note:
See TracChangeset
for help on using the changeset viewer.