#include <glib/gstdio.h>
#include <check.h>
#include "../libsigrok.h"
+#include "lib.h"
/* Get a libsigrok driver by name. */
struct sr_dev_driver *srtest_driver_get(const char *drivername)
GArray *srtest_get_enabled_logic_probes(const struct sr_dev_inst *sdi)
{
- struct sr_probe *probe;
+ struct sr_channel *ch;
GArray *probes;
GSList *l;
probes = g_array_new(FALSE, FALSE, sizeof(int));
for (l = sdi->probes; l; l = l->next) {
probe = l->data;
- if (probe->type != SR_PROBE_LOGIC)
+ if (probe->type != SR_CHANNEL_LOGIC)
continue;
if (probe->enabled != TRUE)
continue;