Lines Matching defs:handle

91    They are very ugly because they handle boundary conditions at
345 // handle -- a handle for an opened camera
347 // A validated pointer to the camera or NULL if handle is not valid.
350 ValidateHandle(SANE_Handle handle)
354 if (c == handle) return c;
356 DBG(1, "ValidateHandle: invalid handle %p\n", handle);
914 // handle -- set to a handle for the opened device
921 sane_open(SANE_String_Const name, SANE_Handle *handle)
961 if (handle) *handle = c;
968 // handle -- handle of device to close
975 sane_close(SANE_Handle handle)
980 if (c == handle) break;
984 DBG(1, "close: invalid handle %p\n", handle);
1001 // handle -- handle of device
1007 sane_get_option_descriptor(SANE_Handle handle, SANE_Int option)
1009 DMC_Camera *c = ValidateHandle(handle);
1019 // handle -- handle of device
1030 sane_control_option(SANE_Handle handle, SANE_Int option,
1039 c = ValidateHandle(handle);
1122 // handle -- handle of device
1130 sane_get_parameters(SANE_Handle handle, SANE_Parameters *params)
1132 DMC_Camera *c = ValidateHandle(handle);
1166 // handle -- handle of device
1173 sane_start(SANE_Handle handle)
1184 DMC_Camera *c = ValidateHandle(handle);
1282 // handle -- handle of device
1292 sane_read(SANE_Handle handle, SANE_Byte *buf, SANE_Int max_len, SANE_Int *len)
1295 DMC_Camera *c = ValidateHandle(handle);
1377 // handle -- handle of device
1384 sane_cancel (SANE_Handle handle)
1386 DMC_Camera *c = ValidateHandle(handle);
1393 sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
1395 (void) handle;
1402 sane_get_select_fd (SANE_Handle handle, SANE_Int *fd)
1404 (void) handle;