Add SR_T_MQLIST.
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.
This commit is contained in:
parent
0176c92fea
commit
a1f7c854c5
|
@ -149,6 +149,7 @@ enum sr_datatype {
|
||||||
SR_T_UINT64_RANGE,
|
SR_T_UINT64_RANGE,
|
||||||
SR_T_DOUBLE_RANGE,
|
SR_T_DOUBLE_RANGE,
|
||||||
SR_T_INT32,
|
SR_T_INT32,
|
||||||
|
SR_T_MQLIST,
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Value for sr_datafeed_packet.type. */
|
/** Value for sr_datafeed_packet.type. */
|
||||||
|
|
|
@ -295,6 +295,8 @@ SR_PRIV const GVariantType *sr_variant_type_get(int datatype)
|
||||||
return G_VARIANT_TYPE_TUPLE;
|
return G_VARIANT_TYPE_TUPLE;
|
||||||
case SR_T_KEYVALUE:
|
case SR_T_KEYVALUE:
|
||||||
return G_VARIANT_TYPE_DICTIONARY;
|
return G_VARIANT_TYPE_DICTIONARY;
|
||||||
|
case SR_T_MQLIST:
|
||||||
|
return G_VARIANT_TYPE_ARRAY;
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue