Lines Matching defs:handle
269 "handle this correctly."),
575 sane_open (SANE_String_Const devicename, SANE_Handle * handle)
596 *handle = MAGIC;
622 sane_close (SANE_Handle handle)
625 if (handle == MAGIC)
630 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
633 if (handle != MAGIC || !is_open)
641 sane_control_option (SANE_Handle handle, SANE_Int option,
649 DBG (2, "sane_control_option: handle=%p, opt=%d, act=%d, val=%p, info=%p\n",
650 handle, option, action, value, (void *) info);
652 if (handle != MAGIC || !is_open)
654 DBG (1, "sane_control_option: unknown handle or not open\n");
655 return SANE_STATUS_INVAL; /* Unknown handle ... */
1094 sane_get_parameters (SANE_Handle handle, SANE_Parameters * params)
1099 if (handle != MAGIC || !is_open)
1100 rc = SANE_STATUS_INVAL; /* Unknown handle ... */
1108 sane_start (SANE_Handle handle)
1118 if (handle != MAGIC || !is_open)
1119 return SANE_STATUS_INVAL; /* Unknown handle ... */
1170 sane_read (SANE_Handle handle, SANE_Byte * data,
1188 if (handle != MAGIC)
1190 DBG (1, "sane_read: unknown handle\n");
1360 sane_cancel (SANE_Handle handle)
1362 DBG (2, "sane_cancel: handle = %p\n", handle);
1373 sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
1375 DBG (2, "sane_set_io_mode: handle = %p, non_blocking = %d\n", handle,
1388 sane_get_select_fd (SANE_Handle handle, SANE_Int * fd)
1390 DBG (2, "sane_get_select_fd: handle = %p, fd %s 0\n", handle,