dev_IsConnected()
Predicate to determine if all layers in a device are connected.
#include "device.h" LBoolean dev_IsConnected ( LDevice device );
device | device to query |
dev_IsConnected() returns TRUE
if the last call to
dev_Connect()
was successful. If it returns FALSE
, the application may call dev_Connect()
to begin or continue the process of connecting the device.
dev_IsConnected() returns a non-zero value if the device is connected, zero otherwise.
for (i = 0; i < deviceCount; i++) { if (!dev_IsConnected(device[i])) { if (result = dev_Connect(device[i]) < 0) { LOG("Connect failure", dev_ErrorMessage(result)); } } }