Changeset 37618 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Jun 23, 2011 5:16:39 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 72464
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/USBGetDevices.h
r36993 r37618 85 85 86 86 #ifdef UNIT_TEST 87 void TestUSBSetupInit(const char *pcszUsbfsRoot, bool fUsbfsAccessible, 88 const char *pcszDevicesRoot, bool fDevicesAccessible, 89 int rcMethodInitResult); 90 void TestUSBSetEnv(const char *pcszEnvUsb, const char *pcszEnvUsbRoot); 91 #endif 92 93 /** 94 * Selects the access method that will be used to access USB devices based on 95 * what is available on the host and what if anything the user has specified 96 * in the environment. 97 * @returns iprt status value 98 * @param pfUsingUsbfsDevices on success this will be set to true if 99 * the prefered access method is USBFS-like and to 100 * false if it is sysfs/device node-like 101 * @param ppcszDevicesRoot on success the root of the tree of USBFS-like 102 * device nodes will be stored here 103 */ 104 extern int USBProxyLinuxChooseMethod(bool *pfUsingUsbfsDevices, 105 const char **ppcszDevicesRoot); 106 #ifdef UNIT_TEST 87 107 /** 88 108 * Specify the list of devices that will appear to be available through -
trunk/src/VBox/Main/include/USBProxyService.h
r37617 r37618 197 197 # endif 198 198 199 #ifdef UNIT_TEST200 void TestUSBSetupInit(const char *pcszUsbfsRoot, bool fUsbfsAccessible,201 const char *pcszDevicesRoot, bool fDevicesAccessible,202 int rcMethodInitResult);203 void TestUSBSetEnv(const char *pcszEnvUsb, const char *pcszEnvUsbRoot);204 #endif205 206 199 /** 207 200 * The Linux hosted USB Proxy Service. … … 217 210 virtual int captureDevice(HostUSBDevice *aDevice); 218 211 virtual int releaseDevice(HostUSBDevice *aDevice); 219 220 # ifdef UNIT_TEST221 /* Test getters for querying internal state. This will go away. */222 bool testGetUsingUsbfs(void) { return mUsingUsbfsDevices; }223 const char *testGetDevicesRoot(void) { return mDevicesRoot.c_str(); }224 # endif225 212 226 213 protected:
Note:
See TracChangeset
for help on using the changeset viewer.