dev_Open()
Open all layers in a device.
#include "device.h" LResult dev_Open ( LDevice device );
device | device to open |
dev_Open() opens and stacks the protocol services listed in the device definition.
If successful, dev_Open() 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)); dev_Dispose(device); }