void map_pd_channels(struct sr_dev_inst *sdi)
{
+ GSList *channels;
+
+ channels = sr_dev_inst_channels_get(sdi);
+
if (pd_channel_maps) {
g_hash_table_foreach(pd_channel_maps, &map_pd_inst_channels,
- sdi->channels);
+ channels);
g_hash_table_destroy(pd_channel_maps);
pd_channel_maps = NULL;
}
show = FALSE;
for (l = ann_list; l; l = l->next) {
if (GPOINTER_TO_INT(l->data) == -1
- || GPOINTER_TO_INT(l->data) == pda->ann_format) {
+ || GPOINTER_TO_INT(l->data) == pda->ann_class) {
show = TRUE;
break;
}
} else {
/* Protocol decoder id, annotation class,
* all annotation strings. */
- ann_descr = g_slist_nth_data(dec->annotations, pda->ann_format);
+ ann_descr = g_slist_nth_data(dec->annotations, pda->ann_class);
printf(" %s: %s:", pdata->pdo->proto_id, ann_descr[0]);
for (i = 0; pda->ann_text[i]; i++)
printf(" \"%s\"", pda->ann_text[i]);