Lines Matching defs:handle
138 lookup_handle(SANE_Handle handle)
144 if (device == handle)
341 sane_open (SANE_String_Const name, SANE_Handle *handle)
346 DBG (8, ">sane_open: devicename=\"%s\", handle=%p\n", name,
347 (void *) handle);
350 CHECK_IF (handle);
364 *handle = device;
382 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
386 DBG (8, "<sane_get_option_descriptor: handle=%p, option = %d\n",
387 (void *) handle, option);
396 if (!(device = lookup_handle(handle)))
409 sane_control_option (SANE_Handle handle,
419 ">sane_control_option: handle=%p, opt=%d, act=%d, val=%p, info=%p\n",
420 (void *) handle, option, action, (void *) value, (void *) info);
423 device = lookup_handle (handle);
542 sane_get_parameters (SANE_Handle handle, SANE_Parameters *params)
546 DBG (8, "sane_get_parameters: handle=%p, params=%p\n", (void *) handle,
550 device = lookup_handle (handle);
709 sane_start (SANE_Handle handle)
716 DBG (8, ">sane_start: handle=%p\n", (void *) handle);
719 device = lookup_handle (handle);
791 sane_read (SANE_Handle handle,
802 DBG (16, ">sane_read: handle=%p, data=%p, maxlen = %d, length=%p\n",
803 (void *) handle, (void *) data, maxlen, (void *) length);
806 device = lookup_handle (handle);
868 sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
871 DBG (8, "sane_set_io_mode: handle = %p, non_blocking = %d\n",
872 (void *) handle, non_blocking);
875 device = lookup_handle (handle);
885 sane_get_select_fd (SANE_Handle handle, SANE_Int *fd)
888 DBG (8, "sane_get_select_fd: handle = %p, fd %s 0\n", (void *) handle,
892 device = lookup_handle (handle);
899 sane_cancel (SANE_Handle handle)
903 DBG (8, ">sane_cancel: handle = %p\n", (void *) handle);
908 if (!(device = lookup_handle (handle)))
929 sane_close (SANE_Handle handle)
938 device = lookup_handle (handle);