Changeset 2587 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- May 11, 2007 3:12:27 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/USBProxyService.h
r1 r2587 149 149 virtual PUSBDEVICE getDevices (void); 150 150 151 /** 152 * First call made on the service thread, use it to do 153 * thread initialization. 154 */ 155 virtual void serviceThreadInit (void); 156 157 /** 158 * First call made on the service thread, use it to do 159 * thread termination. 160 */ 161 virtual void serviceThreadTerm (void); 162 151 163 public: 152 164 /** … … 190 202 #ifdef VBOX_WITH_USB 191 203 204 # ifdef __DARWIN__ 205 # include <VBox/param.h> 206 # undef PAGE_SHIFT 207 # undef PAGE_SIZE 208 # define OSType Carbon_OSType 209 # include <Carbon/Carbon.h> 210 # undef OSType 211 212 /** 213 * The Darwin hosted USB Proxy Service. 214 */ 215 class USBProxyServiceDarwin : public USBProxyService 216 { 217 public: 218 USBProxyServiceDarwin (Host *aHost); 219 ~USBProxyServiceDarwin(); 220 221 virtual int captureDevice (HostUSBDevice *aDevice); 222 virtual int holdDevice (HostUSBDevice *aDevice); 223 virtual int releaseDevice (HostUSBDevice *aDevice); 224 virtual int resetDevice (HostUSBDevice *aDevice); 225 226 protected: 227 virtual int wait (unsigned aMillies); 228 virtual int interruptWait (void); 229 virtual PUSBDEVICE getDevices (void); 230 virtual void serviceThreadInit (void); 231 virtual void serviceThreadTerm (void); 232 233 private: 234 /** Reference to the runloop of the service thread. 235 * This is NULL if the service thread isn't running. */ 236 CFRunLoopRef mServiceRunLoopRef; 237 238 }; 239 # endif /* __DARWIN__ */ 240 241 192 242 # ifdef __LINUX__ 193 243 # include <stdio.h>
Note:
See TracChangeset
for help on using the changeset viewer.