Lines Matching defs:handle
638 sane_open (SANE_String_Const devicename, SANE_Handle *handle)
673 /* insert newly opened handle into list of open handles: */
677 *handle = s;
682 sane_close (SANE_Handle handle)
686 /* remove handle from list of open handles: */
690 if (s == handle)
696 DBG(1, "close: invalid handle %p\n", handle);
697 return; /* oops, not a handle we know about */
701 do_cancel (handle);
708 free (handle);
712 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
714 PINT_Scanner *s = handle;
722 sane_control_option (SANE_Handle handle, SANE_Int option,
725 PINT_Scanner *s = handle;
804 sane_get_parameters (SANE_Handle handle, SANE_Parameters *params)
806 PINT_Scanner *s = handle;
925 sane_start (SANE_Handle handle)
927 PINT_Scanner *s = handle;
946 sane_read (SANE_Handle handle, SANE_Byte *buf, SANE_Int max_len, SANE_Int *len)
948 PINT_Scanner *s = handle;
969 sane_cancel (SANE_Handle handle)
971 PINT_Scanner *s = handle;
976 sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
982 sane_get_select_fd (SANE_Handle handle, SANE_Int *fd)