]> sigrok.org Git - libsigrok.git/commitdiff
Change SR_T_MQLIST to SR_T_MQ.
authorBert Vermeulen <redacted>
Sat, 29 Aug 2015 20:20:29 +0000 (22:20 +0200)
committerBert Vermeulen <redacted>
Sun, 30 Aug 2015 18:40:56 +0000 (20:40 +0200)
The need to make this a list no longer applies.

SR_T_MQ is thus a type consisting of a tuple with two elements: the first
item is the MQ (type G_VARIANT_TYPE_UINT32), and the second is the MQ
flags value (G_VARIANT_TYPE_UINT64).

include/libsigrok/libsigrok.h
src/hwdriver.c

index 19acee97aa0bb663f49b61698f82beee61bbe290..63e60fba3ef5ea796a1a97b6038b266652c49aa3 100644 (file)
@@ -146,7 +146,7 @@ enum sr_datatype {
        SR_T_UINT64_RANGE,
        SR_T_DOUBLE_RANGE,
        SR_T_INT32,
-       SR_T_MQLIST,
+       SR_T_MQ,
 
        /* Update sr_variant_type_get() (hwdriver.c) upon changes! */
 };
index 811c7292d064d36713f9618bae65809eb9701584..595ea65742f3622062c160947f458662411a954f 100644 (file)
@@ -302,8 +302,8 @@ SR_PRIV const GVariantType *sr_variant_type_get(int datatype)
                return G_VARIANT_TYPE_TUPLE;
        case SR_T_KEYVALUE:
                return G_VARIANT_TYPE_DICTIONARY;
-       case SR_T_MQLIST:
-               return G_VARIANT_TYPE_ARRAY;
+       case SR_T_MQ:
+               return G_VARIANT_TYPE_TUPLE;
        default:
                return NULL;
        }