#define LOG_PREFIX "input"
/** @endcond */
+/** @cond PRIVATE */
#define CHUNK_SIZE (4 * 1024 * 1024)
+/** @endcond */
/**
* @file
extern SR_PRIV struct sr_input_module input_wav;
extern SR_PRIV struct sr_input_module input_raw_analog;
extern SR_PRIV struct sr_input_module input_logicport;
+extern SR_PRIV struct sr_input_module input_saleae;
extern SR_PRIV struct sr_input_module input_null;
-/* @endcond */
+/** @endcond */
static const struct sr_input_module *input_module_list[] = {
&input_binary,
&input_wav,
&input_raw_analog,
&input_logicport,
+ &input_saleae,
&input_null,
NULL,
};
*/
SR_API int sr_input_send(const struct sr_input *in, GString *buf)
{
- sr_spew("Sending %" G_GSIZE_FORMAT " bytes to %s module.",
- buf->len, in->module->id);
+ size_t len;
+
+ len = buf ? buf->len : 0;
+ sr_spew("Sending %zu bytes to %s module.", len, in->module->id);
return in->module->receive((struct sr_input *)in, buf);
}