dev_Attach()
Attach all layers in the device.
#include "device.h" LResult dev_Attach ( LDevice device );
device | device to attach |
dev_Attach() attempts to attach all layers in the device. If it fails, some layers may be attached and others may be detached.
If successful, dev_Attach() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:
if ((result = dev_Attach(device)) < 0) { LOG("Attach failure", dev_ErrorMessage(result)); }