dev_Connect()
Connect all layers in the device.
#include "device.h" LResult dev_Connect ( LDevice device );
device | device to connect |
dev_Connect() attempts to connect all layers in the device from the bottom up.
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:
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)); } }