This invalidates previously returned sr_dev_inst pointers, which a
frontend may be holding. It's the frontend's responsibility to clear
the list of instances a driver keeps track of by calling
sr_dev_clear(driver);
if it wants a completely new scan done.
devices = NULL;
- clear_instances();
-
if (!(devc = g_try_malloc(sizeof(struct dev_context)))) {
sr_err("%s: devc malloc failed", __func__);
return NULL;
drvc = di->priv;
- /* This scan always invalidates any previous scans. */
- clear_instances();
-
conn = NULL;
for (l = options; l; l = l->next) {
src = l->data;
const char *conn;
drvc = di->priv;
- drvc->instances = NULL;
devcnt = 0;
devices = 0;
- clear_instances();
-
conn = NULL;
for (l = options; l; l = l->next) {
src = l->data;
drvc = di->priv;
- /* USB scan is always authoritative. */
- clear_instances();
-
conn = NULL;
for (l = options; l; l = l->next) {
src = l->data;
drvc = di->priv;
- /* USB scan is always authoritative. */
- clear_instances();
-
conn = NULL;
for (l = options; l; l = l->next) {
src = l->data;
drvc = udmms[dmm].di->priv;
- /* USB scan is always authoritative. */
- clear_instances(dmm);
-
conn = NULL;
for (l = options; l; l = l->next) {
src = l->data;
drvc = di->priv;
- /* USB scan is always authoritative. */
- clear_instances();
-
devices = NULL;
libusb_get_device_list(drvc->sr_ctx->libusb_ctx, &devlist);
for (i = 0; devlist[i]; i++) {
devices = NULL;
- clear_instances();
-
/* Find all ZEROPLUS analyzers and add them to device list. */
devcnt = 0;
libusb_get_device_list(drvc->sr_ctx->libusb_ctx, &devlist); /* TODO: Errors. */