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

DECLINLINE ( PVDINTERFACEERROR   ) 

Get error interface from opaque callback table.

Returns:
Pointer to the callback table.
Parameters:
pInterface Pointer to the interface descriptor.

Definition at line 385 of file VBoxHDD-new.h.

References AssertMsgReturn, NULL, and VDINTERFACETYPE_ERROR.

{
    /* Check that the interface descriptor is a error interface. */
    AssertMsgReturn(   (pInterface->enmInterface == VDINTERFACETYPE_ERROR)
                    && (pInterface->cbSize == sizeof(VDINTERFACE)),
                    ("Not an error interface"), NULL);

    PVDINTERFACEERROR pInterfaceError = (PVDINTERFACEERROR)pInterface->pCallbacks;

    /* Do basic checks. */
    AssertMsgReturn(   (pInterfaceError->cbSize == sizeof(VDINTERFACEERROR))
                    && (pInterfaceError->enmInterface == VDINTERFACETYPE_ERROR),
                    ("A non error callback table attached to a error interface descriptor\n"), NULL);

    return pInterfaceError;
}


Generated by  Doxygen 1.6.0   Back to index