Change SR_T_MQLIST to SR_T_MQ.
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).
This commit is contained in:
parent
28d86fa9a5
commit
75772c721d
|
@ -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! */
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue