struct zip_file *zf;
struct zip_stat zs;
struct sr_dev_inst *sdi;
- struct sr_channel *ch;
int ret, i, j;
uint64_t tmp_u64, total_channels, p;
char **sections, **keys, *metafile, *val;
g_variant_new_uint64(total_channels), sdi, NULL);
for (p = 0; p < total_channels; p++) {
snprintf(channelname, SR_MAX_CHANNELNAME_LEN, "%" PRIu64, p);
- ch = sr_channel_new(p, SR_CHANNEL_LOGIC, FALSE,
+ sr_channel_new(sdi, p, SR_CHANNEL_LOGIC, FALSE,
channelname);
- sdi->channels = g_slist_append(sdi->channels, ch);
}
} else if (!strncmp(keys[j], "probe", 5)) {
if (!sdi) {