X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=include%2Flibsigrok%2Flibsigrok.h;h=ccb8602fca64a680e1dc1e7bbbdb94def13a9692;hb=2fb60e23299037456a626ad65d15b89a78393917;hp=0e35957f05ee76a95868136e92ed6069c101f2db;hpb=0b2b92f6c3db384cad10e3229e3fa149fc429ef4;p=libsigrok.git diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 0e35957f..ccb8602f 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -574,15 +574,19 @@ struct sr_config { GVariant *data; }; -/** Information about a config key. */ -struct sr_config_info { - /** Config key like SR_CONF_CONN, etc. */ +enum sr_keytype { + SR_KEY_CONFIG, +}; + +/** Information about a key. */ +struct sr_key_info { + /** Config key like SR_CONF_CONN, MQ value like SR_MQ_VOLTAGE, etc. */ uint32_t key; - /** Data type like SR_T_STRING, etc. */ + /** Data type like SR_T_STRING, etc if applicable. */ int datatype; - /** Id string, e.g. "serialcomm". */ + /** Short, lowercase ID string, e.g. "serialcomm", "voltage". */ char *id; - /** Name, e.g. "Serial communication". */ + /** Full capitalized name, e.g. "Serial communication". */ char *name; /** Verbose description (unused currently). */ char *description;