Lines Matching refs:ctx
214 int usb_manager_init(usb_manager_context **ctx)
217 if (ctx == nullptr) {
218 SANE_HILOG_ERROR("%s: ctx is a nullptr.", __func__);
231 *ctx = usbmanagerContext;
236 int usb_manager_exit(usb_manager_context *ctx)
239 if (ctx == nullptr) {
240 SANE_HILOG_ERROR("%s: ctx is a nullptr.", __func__);
243 delete ctx;
244 ctx = nullptr;
255 ssize_t usb_manager_get_device_list(usb_manager_context *ctx, usb_manager_device ***list)
258 if (ctx == nullptr || list == nullptr) {
259 SANE_HILOG_ERROR("%s: ctx or list is a nullptr.", __func__);