return SR_ERR_MALLOC;
}
+ drvc->sr_ctx = sr_ctx;
di->priv = drvc;
return SR_OK;
sr_err("Driver context malloc failed.");
return SR_ERR_MALLOC;
}
+ drvc->sr_ctx = sr_ctx;
adi->priv = drvc;
return SR_OK;
return SR_ERR_MALLOC;
}
+ drvc->sr_ctx = sr_ctx;
di->priv = drvc;
return SR_OK;
return SR_ERR;
}
+ drvc->sr_ctx = sr_ctx;
di->priv = drvc;
return SR_OK;
sr_err("Driver context malloc failed.");
return SR_ERR_MALLOC;
}
+ drvc->sr_ctx = sr_ctx;
ddi->priv = drvc;
return SR_OK;
return SR_ERR_MALLOC;
}
+ drvc->sr_ctx = sr_ctx;
di->priv = drvc;
return SR_OK;
return SR_ERR;
}
+ drvc->sr_ctx = sr_ctx;
fdi->priv = drvc;
return SR_OK;
return SR_ERR;
}
+ drvc->sr_ctx = sr_ctx;
hdi->priv = drvc;
return SR_OK;
sr_err("ols: driver context malloc failed.");
return SR_ERR_MALLOC;
}
+ drvc->sr_ctx = sr_ctx;
odi->priv = drvc;
return SR_OK;
di = di_22_812;
sr_dbg("Selected '%s' subdriver.", di->name);
+ drvc->sr_ctx = sr_ctx;
di->priv = drvc;
return SR_OK;
return SR_ERR_MALLOC;
}
+ drvc->sr_ctx = sr_ctx;
di->priv = drvc;
return SR_OK;
di = di_vc820;
sr_dbg("Selected '%s' subdriver.", di->name);
+ drvc->sr_ctx = sr_ctx;
di->priv = drvc;
return SR_OK;
sr_err("Driver context malloc failed.");
return SR_ERR_MALLOC;
}
+ drvc->sr_ctx = sr_ctx;
di->priv = drvc;
return SR_OK;
sr_err("zeroplus: driver context malloc failed.");
return SR_ERR_MALLOC;
}
+ drvc->sr_ctx = sr_ctx;
zdi->priv = drvc;
if (libusb_init(&usb_context) != 0) {
/* Private driver context. */
struct drv_context {
+ struct sr_context *sr_ctx;
GSList *instances;
};