serial->lib_funcs = ser_lib_funcs_hid;
else if (ser_name_is_bt(serial))
serial->lib_funcs = ser_lib_funcs_bt;
+ else if (ser_name_is_tcpraw(serial))
+ serial->lib_funcs = ser_lib_funcs_tcpraw;
else
serial->lib_funcs = ser_lib_funcs_libsp;
if (!serial->lib_funcs)
return SR_ERR;
}
+#endif
+
/**
* Extract the serial device and options from the options linked list.
*
return SR_OK;
}
+#ifdef HAVE_SERIAL_COMM
+
/** @private */
SR_PRIV int serial_source_add(struct sr_session *session,
struct sr_serial_dev_inst *serial, int events, int timeout,