X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fcxx%2Fenums.py;h=3711334e74f740135a94f58ef70e78e7a8570268;hb=35334baa90dd7c68862ec25b58db0701a5802245;hp=32ef6bc175f5eaa57ee4e6f683d236de25051974;hpb=8fb7efe20311903dd8101962107d21a02a9884ce;p=libsigrok.git diff --git a/bindings/cxx/enums.py b/bindings/cxx/enums.py index 32ef6bc1..3711334e 100644 --- a/bindings/cxx/enums.py +++ b/bindings/cxx/enums.py @@ -40,6 +40,7 @@ mapping = dict([ ('sr_unit', ('Unit', 'Unit of measurement')), ('sr_mqflag', ('QuantityFlag', 'Flag applied to measured quantity')), ('sr_configkey', ('ConfigKey', 'Configuration key')), + ('sr_configcap', ('Capability', 'Configuration capability')), ('sr_datatype', ('DataType', 'Configuration data type')), ('sr_channeltype', ('ChannelType', 'Channel type')), ('sr_trigger_matches', ('TriggerMatchType', 'Trigger match type')), @@ -79,6 +80,8 @@ print("namespace sigrok {", file=header) # Template for beginning of class declaration and public members. header_public_template = """ +template<> const SR_API std::map EnumValue<{classname}, enum {enumname}>::_values; + /** {brief} */ class SR_API {classname} : public EnumValue<{classname}, enum {enumname}> {{