dev_Reopen()
Reopen all layers in a device.
#include "device.h" LResult dev_Reopen ( LDevice device );
device | device to reopen |
dev_Reopen() returns all layers in the device to the open state.
If successful, dev_Reopen() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:
if ((result = dev_Disconnect(device)) < 0) { LOG("Disconnect failure", dev_ErrorMessage(result)); if ((result = dev_Reopen(device)) < 0) { LOG("Reopen failure", dev_ErrorMessage(result)); } }