Changeset 93955 in vbox for trunk/src/VBox/Devices/USB/VUSBInternal.h
- Timestamp:
- Feb 25, 2022 4:13:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/VUSBInternal.h
r93939 r93955 320 320 321 321 322 /** Virtual method table for USB hub devices.323 * Hub and roothub drivers need to implement these functions in addition to the324 * vusb_dev_ops.325 */326 typedef struct VUSBHUBOPS327 {328 int (*pfnAttach)(PVUSBHUB pHub, PVUSBDEV pDev);329 void (*pfnDetach)(PVUSBHUB pHub, PVUSBDEV pDev);330 } VUSBHUBOPS;331 /** Pointer to a const HUB method table. */332 typedef const VUSBHUBOPS *PCVUSBHUBOPS;333 334 322 /** A VUSB Hub Device - Hub and roothub drivers need to use this struct 335 323 * @todo eliminate this (PDM / roothubs only). … … 338 326 { 339 327 VUSBDEV Dev; 340 PCVUSBHUBOPS pOps;341 328 PVUSBROOTHUB pRootHub; 342 329 uint16_t cPorts; … … 345 332 char *pszName; 346 333 } VUSBHUB; 347 AssertCompileMemberAlignment(VUSBHUB, pOps, 8);348 334 AssertCompileSizeAlignment(VUSBHUB, 8); 349 335
Note:
See TracChangeset
for help on using the changeset viewer.