};
SR_PRIV struct sr_dev_driver hantek_dso_driver_info;
-static struct sr_dev_driver *hdi = &hantek_dso_driver_info;
+static struct sr_dev_driver *di = &hantek_dso_driver_info;
static int hw_dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data);
prof->vendor, prof->model, NULL);
if (!sdi)
return NULL;
- sdi->driver = hdi;
+ sdi->driver = di;
/*
* Add only the real probes -- EXT isn't a source of data, only
devc->triggersource = g_strdup(DEFAULT_TRIGGER_SOURCE);
devc->triggerposition = DEFAULT_HORIZ_TRIGGERPOS;
sdi->priv = devc;
- drvc = hdi->priv;
+ drvc = di->priv;
drvc->instances = g_slist_append(drvc->instances, sdi);
return sdi;
struct dev_context *devc;
GSList *l;
- drvc = hdi->priv;
+ drvc = di->priv;
for (l = drvc->instances; l; l = l->next) {
if (!(sdi = l->data)) {
/* Log error, but continue cleaning up the rest. */
}
drvc->sr_ctx = sr_ctx;
- hdi->priv = drvc;
+ di->priv = drvc;
return SR_OK;
}
devcnt = 0;
devices = 0;
- drvc = hdi->priv;
+ drvc = di->priv;
drvc->instances = NULL;
clear_instances();
{
struct drv_context *drvc;
- drvc = hdi->priv;
+ drvc = di->priv;
return drvc->instances;
}
{
struct drv_context *drvc;
- if (!(drvc = hdi->priv))
+ if (!(drvc = di->priv))
return SR_OK;
clear_instances();
struct sr_datafeed_packet packet;
struct timeval tv;
struct dev_context *devc;
- struct drv_context *drvc = hdi->priv;
+ struct drv_context *drvc = di->priv;
const struct libusb_pollfd **lupfd;
int num_probes, i;
uint32_t trigger_offset;
struct sr_datafeed_header header;
struct sr_datafeed_meta_analog meta;
struct dev_context *devc;
- struct drv_context *drvc = hdi->priv;
+ struct drv_context *drvc = di->priv;
int i;
if (sdi->status != SR_ST_ACTIVE)