Lines Matching defs:handle
37 - sane_open() : open a particular scanner device, adding a handle
47 - sane_close() : close opened scanner device, freeing scanner handle
309 * name. If the call completes successfully, a handle for the device
316 * @param handle opaque pointer where to store the pointer of
321 sane_open (SANE_String_Const name, SANE_Handle * handle)
366 /* now we have a device, duplicate it and return it in handle */
401 /* prepare handle to return */
417 /* add the handle to the linked list of sessions */
422 *handle = session;
435 sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
437 P5_Session *session = (P5_Session *) handle;
459 sane_get_select_fd (SANE_Handle handle, SANE_Int * fdp)
462 (void) handle;
478 * represented by handle h. Option number 0 is guaranteed to be a
480 * options that are available for device handle h (the count includes
486 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
488 struct P5_Session *session = handle;
682 * number n of the device represented by handle h. The manner in which
700 sane_control_option (SANE_Handle handle, SANE_Int option,
703 P5_Session *s = handle;
810 * @param handle opaque handle to a frontend session
817 sane_start (SANE_Handle handle)
819 struct P5_Session *session = handle;
886 sane_cancel (handle);
991 /* handle bounds of motor's dpi range */
1078 * be. The parameters passed to this function are the handle of the
1083 sane_get_parameters (SANE_Handle handle, SANE_Parameters * params)
1086 struct P5_Session *session = (struct P5_Session *) handle;
1105 * represented by handle h. Argument buf is a pointer to a memory
1117 sane_read (SANE_Handle handle, SANE_Byte * buf,
1120 struct P5_Session *session = (struct P5_Session *) handle;
1134 DBG (DBG_error, "sane_read: handle is null!\n");
1228 /* handle document end detection TODO try to recover the partial
1337 * handle h. This function can be called at any time (as long as
1338 * handle h is a valid handle) but usually affects long-running
1351 sane_cancel (SANE_Handle handle)
1353 P5_Session *session = handle;
1384 * This function terminates the association between the device handle
1387 * this function returns, handle h must not be used anymore.
1389 * Handle resources are free'd before disposing the handle. But devices
1394 sane_close (SANE_Handle handle)
1400 /* remove handle from list of open handles: */
1404 if (session == handle)
1410 DBG (DBG_error0, "close: invalid handle %p\n", handle);
1411 return; /* oops, not a handle we know about */
1417 sane_cancel (handle);