Device Function

Connect

dev_Connect()

Connect all layers in the device.

Syntax
#include "device.h"

LResult  dev_Connect
    (
         LDevice    device
    );
devicedevice to connect
Description

dev_Connect() attempts to connect all layers in the device from the bottom up.

Return Values

If successful, dev_Connect() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:

See Also

dev_Disconnect()

Example
if ((result = dev_Open(device)) < 0)
{
    LOG("Open failure", dev_ErrorMessage(result));
}
else
{
    if ((result = dev_Connect(device)) < 0)
    {
        LOG("Connect failure", dev_ErrorMessage(result));
    }
}