hameg-hmo: Implement SR_CONF_SCAN_OPTIONS.
This commit is contained in:
parent
706f482a95
commit
226363c4e8
|
@ -29,7 +29,7 @@ static const char *manufacturers[] = {
|
||||||
"HAMEG",
|
"HAMEG",
|
||||||
};
|
};
|
||||||
|
|
||||||
static const int32_t hwopts[] = {
|
static const int32_t scanopts[] = {
|
||||||
SR_CONF_CONN,
|
SR_CONF_CONN,
|
||||||
SR_CONF_SERIALCOMM,
|
SR_CONF_SERIALCOMM,
|
||||||
};
|
};
|
||||||
|
@ -519,6 +519,10 @@ static int config_list(int key, GVariant **data, const struct sr_dev_inst *sdi,
|
||||||
model = devc->model_config;
|
model = devc->model_config;
|
||||||
|
|
||||||
switch (key) {
|
switch (key) {
|
||||||
|
case SR_CONF_SCAN_OPTIONS:
|
||||||
|
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_INT32,
|
||||||
|
scanopts, ARRAY_SIZE(scanopts), sizeof(int32_t));
|
||||||
|
break;
|
||||||
case SR_CONF_DEVICE_OPTIONS:
|
case SR_CONF_DEVICE_OPTIONS:
|
||||||
if (cg_type == CG_NONE) {
|
if (cg_type == CG_NONE) {
|
||||||
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_INT32,
|
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_INT32,
|
||||||
|
|
Loading…
Reference in New Issue