]> sigrok.org Git - libsigrok.git/commitdiff
Add SR_T_MQLIST.
authorBert Vermeulen <redacted>
Sun, 16 Aug 2015 23:43:22 +0000 (01:43 +0200)
committerUwe Hermann <redacted>
Tue, 25 Aug 2015 23:54:34 +0000 (01:54 +0200)
This type consists of an array, with each item a two-member tuple,
representing an MQ/MQflags pair: the first item is the MQ (type
G_VARIANT_TYPE_UINT32), and the second is the MQ flags value
(G_VARIANT_TYPE_UINT64).

A GVariant of type SR_T_MQLIST can thus always represent more than
one MQ/MQflag pair.

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

index dc04132257ee8e92147372e385532927a2b4a1eb..0abf412f940194cd374316650afb1cb80533828f 100644 (file)
@@ -149,6 +149,7 @@ enum sr_datatype {
        SR_T_UINT64_RANGE,
        SR_T_DOUBLE_RANGE,
        SR_T_INT32,
+       SR_T_MQLIST,
 };
 
 /** Value for sr_datafeed_packet.type. */
index 37bab71144e6de7c0cc36ce37ade0dbd5b8f8574..7c9045477f40e3f015bdc89aacdd57ed6013ff8f 100644 (file)
@@ -295,6 +295,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;
        default:
                return NULL;
        }