- bind_int(name, "", pair<int64_t, int64_t>(1, 500), get, set);
+ if (capabilities.count(Capability::LIST))
+ bind_enum(name, "", key, capabilities, get, set, print_probe_factor);
+ else
+ bind_int(name, "", "", pair<int64_t, int64_t>(1, 500), get, set);
+ break;
+
+ case SR_CONF_AVG_SAMPLES:
+ if (capabilities.count(Capability::LIST))
+ bind_enum(name, "", key, capabilities, get, set, print_averages);
+ else
+ bind_int(name, "", "", pair<int64_t, int64_t>(0, INT32_MAX), get, set);