#ifdef HAVE_LA_DEMO
extern SR_PRIV struct sr_dev_driver demo_driver_info;
#endif
-#ifdef HAVE_LA_SALEAE_LOGIC
-extern SR_PRIV struct sr_dev_driver saleae_logic_driver_info;
-#endif
#ifdef HAVE_LA_OLS
extern SR_PRIV struct sr_dev_driver ols_driver_info;
#endif
#ifdef HAVE_LA_FX2LAFW
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;
+#endif
static struct sr_dev_driver *drivers_list[] = {
#ifdef HAVE_LA_DEMO
&demo_driver_info,
#endif
-#ifdef HAVE_LA_SALEAE_LOGIC
- &saleae_logic_driver_info,
-#endif
#ifdef HAVE_LA_OLS
&ols_driver_info,
#endif
#endif
#ifdef HAVE_LA_FX2LAFW
&fx2lafw_driver_info,
+#endif
+#ifdef HAVE_HW_HANTEK_DSO
+ &hantek_dso_plugin_info,
#endif
NULL,
};
return NULL;
}
-/* unnecessary level of indirection follows. */
+/* Unnecessary level of indirection follows. */
-SR_PRIV void sr_source_remove(int fd)
+SR_PRIV int sr_source_remove(int fd)
{
- sr_session_source_remove(fd);
+ return sr_session_source_remove(fd);
}
-SR_PRIV void sr_source_add(int fd, int events, int timeout,
- sr_receive_data_callback_t cb, void *cb_data)
+SR_PRIV int sr_source_add(int fd, int events, int timeout,
+ sr_receive_data_callback_t cb, void *cb_data)
{
- sr_session_source_add(fd, events, timeout, cb, cb_data);
+ return sr_session_source_add(fd, events, timeout, cb, cb_data);
}