Lines Matching defs:handle
323 * Open the scanner with the given devicename and return a handle to it, which
324 * is a pointer to a Pieusb_Scanner struct. The handle will be an input to
328 * @param handle handle to scanner (pointer to a Pieusb_Scanner struct)
332 sane_open (SANE_String_Const devicename, SANE_Handle * handle)
375 * This error is not caught by sanei_usb_find_devices(), so handle
404 *handle = s;
433 /* Insert newly opened handle into list of open handles: */
437 *handle = scanner;
444 * @param handle Scanner handle
447 sane_close (SANE_Handle handle)
454 /* Find handle in list of open handles: */
457 if (scanner == handle) {
462 /* Not a handle we know about. This may happen since all different backend
465 DBG (DBG_error, "sane_close(): invalid handle %p\n", handle);
479 /* Remove handle from list */
499 * @param handle Scanner handle
504 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
506 Pieusb_Scanner *scanner = handle;
520 * represented by the given handle.
522 * @param handle Scanner handle
530 sane_control_option (SANE_Handle handle, SANE_Int option, SANE_Action action,
533 Pieusb_Scanner *scanner = handle;
661 /* Set option and handle info return */
765 * @param handle Scanner handle
770 sane_get_parameters (SANE_Handle handle, SANE_Parameters * params)
772 Pieusb_Scanner *scanner = handle;
861 * @param handle Scanner handle
865 sane_start (SANE_Handle handle)
867 struct Pieusb_Scanner *scanner = handle;
1310 * @param handle
1317 sane_read (SANE_Handle handle, SANE_Byte * buf, SANE_Int max_len, SANE_Int * len)
1320 struct Pieusb_Scanner *scanner = handle;
1389 * @param handle Scanner handle
1392 sane_cancel (SANE_Handle handle)
1394 struct Pieusb_Scanner *scanner = handle;
1404 * Set the I/O mode of handle h. The I/O mode can be either blocking or
1407 * @param handle Scanner handle
1412 sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
1414 /* Pieusb_Scanner *scanner = handle; */
1416 DBG (DBG_info_sane, "sane_set_io_mode: handle = %p, non_blocking = %s\n", handle, non_blocking == SANE_TRUE ? "true" : "false");
1431 * @param handle Scanner handle
1436 sane_get_select_fd (SANE_Handle handle, SANE_Int * fd)
1439 (void) handle;