]> sigrok.org Git - sigrok-cli.git/commitdiff
Replace ann_format with ann_class.
authorUwe Hermann <redacted>
Mon, 15 Sep 2014 18:26:08 +0000 (20:26 +0200)
committerUwe Hermann <redacted>
Mon, 15 Sep 2014 18:26:08 +0000 (20:26 +0200)
The naming has been changed to "annotation class" a while ago.

decode.c

index 7712ea10a2a2580df9e6297446581381f3f9c520..b020b68baab2ea14aedfea89ee202179216ce2c7 100644 (file)
--- a/decode.c
+++ b/decode.c
@@ -465,7 +465,7 @@ void show_pd_annotations(struct srd_proto_data *pdata, void *cb_data)
        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;
                }
@@ -484,7 +484,7 @@ void show_pd_annotations(struct srd_proto_data *pdata, void *cb_data)
                } 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]);