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


Get async I/O interface from opaque callback table.

Pointer to the callback table.
pInterface Pointer to the interface descriptor.

Definition at line 1607 of file VBoxHDD.h.

References AssertMsgReturn, VDINTERFACEIO::cbSize, VDINTERFACEIO::enmInterface, NULL, and VDINTERFACETYPE_IO.

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

    PVDINTERFACEIO pInterfaceIO = (PVDINTERFACEIO)pInterface->pCallbacks;

    /* Do basic checks. */
    AssertMsgReturn(   (pInterfaceIO->cbSize == sizeof(VDINTERFACEIO))
                    && (pInterfaceIO->enmInterface == VDINTERFACETYPE_IO),
                    ("A non I/O callback table attached to a I/O interface descriptor\n"), NULL);

    return pInterfaceIO;

Generated by  Doxygen 1.6.0   Back to index