Changeset 25966 in vbox for trunk/src/VBox/Devices/Audio/DevSB16.cpp
- Timestamp:
- Jan 22, 2010 11:15:43 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56818
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r24265 r25966 36 36 #include <iprt/assert.h> 37 37 #include <iprt/string.h> 38 #include <iprt/uuid.h> 38 39 #include "../vl_vbox.h" 39 40 … … 188 189 PTMTIMER pTimer; 189 190 PPDMIBASE pDrvBase; 191 /** LUN\#0: Base interface. */ 190 192 PDMIBASE IBase; 191 193 #endif … … 1770 1772 } 1771 1773 1774 /** 1775 * @interface_method_impl{PDMIBASE,pfnQueryInterface} 1776 */ 1772 1777 static DECLCALLBACK(void *) sb16QueryInterface (struct PDMIBASE *pInterface, 1773 PDMINTERFACE enmInterface) 1774 { 1775 SB16State *pThis = (SB16State *)((uintptr_t)pInterface 1776 - RT_OFFSETOF(SB16State, IBase)); 1778 const char *pszIID) 1779 { 1780 SB16State *pThis = RT_FROM_MEMBER(pInterface, SB16State, IBase); 1777 1781 Assert(&pThis->IBase == pInterface); 1778 switch (enmInterface) 1779 { 1780 case PDMINTERFACE_BASE: 1781 return &pThis->IBase; 1782 default: 1783 return NULL; 1784 } 1782 1783 if (RTUuidCompare2Strs(pszIID, PDMIBASE_IID) == 0) 1784 return &pThis->IBase; 1785 return NULL; 1785 1786 } 1786 1787
Note:
See TracChangeset
for help on using the changeset viewer.