extern SR_PRIV struct sr_dev_driver fx2lafw_driver_info;
#endif
#ifdef HAVE_HW_HANTEK_DSO
-extern SR_PRIV struct sr_dev_driver hantek_dso_plugin_info;
+extern SR_PRIV struct sr_dev_driver hantek_dso_driver_info;
+#endif
+#ifdef HAVE_HW_MASTECH_VA18B
+extern SR_PRIV struct sr_dev_driver mastech_va18b_driver_info;
#endif
static struct sr_dev_driver *drivers_list[] = {
&fx2lafw_driver_info,
#endif
#ifdef HAVE_HW_HANTEK_DSO
- &hantek_dso_plugin_info,
+ &hantek_dso_driver_info,
+#endif
+#ifdef HAVE_HW_MASTECH_VA18B
+ &mastech_va18b_driver_info,
#endif
NULL,
};
*/
SR_API gboolean sr_driver_hwcap_exists(struct sr_dev_driver *driver, int hwcap)
{
- int *hwcaps, i;
+ const int *hwcaps;
+ int i;
if (!driver) {
sr_err("hwdriver: %s: driver was NULL", __func__);
* @return A pointer to a struct with information about the parameter, or NULL
* if the capability was not found.
*/
-SR_API struct sr_hwcap_option *sr_hw_hwcap_get(int hwcap)
+SR_API const struct sr_hwcap_option *sr_hw_hwcap_get(int hwcap)
{
int i;