This is a wrapper around the driver dev_config_set() call, to avoid
frontends needing visibility into drivers.
g_free(serial->port);
}
+SR_API int sr_dev_config_set(const struct sr_dev_inst *sdi, int hwcap,
+ const void *value)
+{
+ int ret;
+
+ if (!sdi || !sdi->driver || !sdi->driver->dev_config_set) {
+ sr_err("hwdriver: unable to set config option");
+ return SR_ERR;
+ }
+
+ ret = sdi->driver->dev_config_set(sdi, hwcap, value);
+
+ return ret;
+}
SR_API int sr_dev_trigger_set(const struct sr_dev_inst *sdi, int probenum,
const char *trigger);
SR_API gboolean sr_dev_has_hwcap(const struct sr_dev_inst *sdi, int hwcap);
+SR_API int sr_dev_config_set(const struct sr_dev_inst *sdi, int hwcap,
+ const void *value);
/*--- filter.c --------------------------------------------------------------*/