Lines Matching defs:handle
307 check_handle (SANE_Handle handle)
313 if (test_device == (Test_Device *) handle)
423 "to test whether a frontend can handle this "
1830 DBG (3, "sane-init: I don't know how to handle option `%s'\n",
1962 sane_open (SANE_String_Const devicename, SANE_Handle * handle)
1967 DBG (2, "sane_open: devicename = \"%s\", handle=%p\n",
1968 devicename, (void *) handle);
1975 if (!handle)
1977 DBG (1, "sane_open: handle == 0\n");
2004 DBG (2, "sane_open: opening device `%s', handle = %p\n", test_device->name,
2007 *handle = test_device;
2028 sane_close (SANE_Handle handle)
2030 Test_Device *test_device = handle;
2032 DBG (2, "sane_close: handle=%p\n", (void *) handle);
2039 if (!check_handle (handle))
2041 DBG (1, "sane_close: handle %p unknown\n", (void *) handle);
2046 DBG (1, "sane_close: handle %p not open\n", (void *) handle);
2054 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
2056 Test_Device *test_device = handle;
2058 DBG (4, "sane_get_option_descriptor: handle=%p, option = %d\n",
2059 (void *) handle, option);
2067 if (!check_handle (handle))
2069 DBG (1, "sane_get_option_descriptor: handle %p unknown\n",
2070 (void *) handle);
2091 sane_control_option (SANE_Handle handle, SANE_Int option, SANE_Action action,
2094 Test_Device *test_device = handle;
2098 DBG (4, "sane_control_option: handle=%p, opt=%d, act=%d, val=%p, info=%p\n",
2099 (void *) handle, option, action, (void *) value, (void *) info);
2106 if (!check_handle (handle))
2108 DBG (1, "sane_control_option: handle %p unknown\n", (void *) handle);
2618 sane_get_parameters (SANE_Handle handle, SANE_Parameters * params)
2620 Test_Device *test_device = handle;
2626 DBG (2, "sane_get_parameters: handle=%p, params=%p\n",
2627 (void *) handle, (void *) params);
2633 if (!check_handle (handle))
2635 DBG (1, "sane_get_parameters: handle %p unknown\n", (void *) handle);
2640 DBG (1, "sane_get_parameters: handle %p not open\n", (void *) handle);
2765 sane_start (SANE_Handle handle)
2767 Test_Device *test_device = handle;
2770 DBG (2, "sane_start: handle=%p\n", handle);
2776 if (!check_handle (handle))
2778 DBG (1, "sane_start: handle %p unknown\n", handle);
2819 sane_get_parameters (handle, 0);
2870 sane_read (SANE_Handle handle, SANE_Byte * data,
2873 Test_Device *test_device = handle;
2880 DBG (4, "sane_read: handle=%p, data=%p, max_length = %d, length=%p\n",
2881 handle, (void *) data, max_length, (void *) length);
2887 if (!check_handle (handle))
2889 DBG (1, "sane_read: handle %p unknown\n", handle);
3010 sane_cancel (SANE_Handle handle)
3012 Test_Device *test_device = handle;
3014 DBG (2, "sane_cancel: handle = %p\n", handle);
3020 if (!check_handle (handle))
3022 DBG (1, "sane_cancel: handle %p unknown\n", handle);
3049 sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
3051 Test_Device *test_device = handle;
3053 DBG (2, "sane_set_io_mode: handle = %p, non_blocking = %d\n", handle,
3060 if (!check_handle (handle))
3062 DBG (1, "sane_set_io_mode: handle %p unknown\n", handle);
3094 sane_get_select_fd (SANE_Handle handle, SANE_Int * fd)
3096 Test_Device *test_device = handle;
3098 DBG (2, "sane_get_select_fd: handle = %p, fd %s 0\n", handle,
3105 if (!check_handle (handle))
3107 DBG (1, "sane_get_select_fd: handle %p unknown\n", handle);