src/serial_hid_victor.c \
src/serial_libsp.c \
src/scpi/scpi_serial.c
+else
+libsigrok_la_SOURCES += \
+ src/serial.c
endif
if NEED_USB
libsigrok_la_SOURCES += \
size_t packet_size, packet_valid_callback is_valid,
packet_valid_len_callback is_valid_len, size_t *return_size,
uint64_t timeout_ms);
-SR_PRIV int sr_serial_extract_options(GSList *options, const char **serial_device,
- const char **serial_options);
SR_PRIV int serial_source_add(struct sr_session *session,
struct sr_serial_dev_inst *serial, int events, int timeout,
sr_receive_data_callback cb, void *cb_data);
#endif
#endif
+SR_PRIV int sr_serial_extract_options(GSList *options,
+ const char **serial_device, const char **serial_options);
+
/*--- bt/ API ---------------------------------------------------------------*/
#ifdef HAVE_BLUETOOTH
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,