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


Get error interface from opaque callback table.

Pointer to the callback table.
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