#include <string.h>
struct feed_queue_logic {
- struct sr_dev_inst *sdi;
+ const struct sr_dev_inst *sdi;
size_t unit_size;
size_t alloc_count;
size_t fill_count;
struct sr_datafeed_logic logic;
};
-SR_API struct feed_queue_logic *feed_queue_logic_alloc(struct sr_dev_inst *sdi,
+SR_API struct feed_queue_logic *feed_queue_logic_alloc(
+ const struct sr_dev_inst *sdi,
size_t sample_count, size_t unit_size)
{
struct feed_queue_logic *q;
}
struct feed_queue_analog {
- struct sr_dev_inst *sdi;
+ const struct sr_dev_inst *sdi;
size_t alloc_count;
size_t fill_count;
float *data_values;
GSList *channels;
};
-SR_API struct feed_queue_analog *feed_queue_analog_alloc(struct sr_dev_inst *sdi,
+SR_API struct feed_queue_analog *feed_queue_analog_alloc(
+ const struct sr_dev_inst *sdi,
size_t sample_count, int digits, struct sr_channel *ch)
{
struct feed_queue_analog *q;
struct feed_queue_analog;
SR_API struct feed_queue_logic *feed_queue_logic_alloc(
- struct sr_dev_inst *sdi,
+ const struct sr_dev_inst *sdi,
size_t sample_count, size_t unit_size);
SR_API int feed_queue_logic_submit(struct feed_queue_logic *q,
const uint8_t *data, size_t count);
SR_API void feed_queue_logic_free(struct feed_queue_logic *q);
SR_API struct feed_queue_analog *feed_queue_analog_alloc(
- struct sr_dev_inst *sdi,
+ const struct sr_dev_inst *sdi,
size_t sample_count, int digits, struct sr_channel *ch);
SR_API int feed_queue_analog_submit(struct feed_queue_analog *q,
float data, size_t count);