Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

#define PDMIBASE_RETURN_INTERFACE ( pszIID,
InterfaceType,
pInterface   ) 

Value:

do { \
        if (RTUuidCompare2Strs((pszIID), InterfaceType##_IID) == 0) \
        { \
            P##InterfaceType pReturnInterfaceTypeCheck = (pInterface); \
            return pReturnInterfaceTypeCheck; \
        } \
    } while (0)
Helper macro for implementing PDMIBASE::pfnQueryInterface.

Return pInterface if pszIID matches the InterfaceType. This will perform basic type checking.

Parameters:
pszIID The ID of the interface that is being queried.
InterfaceType The interface type name. The interface ID is derived from this by appending _IID.
pInterface The interface address expression.

Definition at line 112 of file pdmifs.h.

Referenced by DECLCALLBACK().


Generated by  Doxygen 1.6.0   Back to index