Lines Matching defs:handle
819 int handle;
858 handle = u12if_open( dev );
859 if( handle < 0 ) {
860 DBG( _DBG_ERROR,"open failed: %d\n", handle );
864 /* okay, so assign the handle... */
865 dev->fd = handle;
1090 SANE_Status sane_open( SANE_String_Const devicename, SANE_Handle* handle )
1133 /* insert newly opened handle into list of open handles: */
1137 *handle = s;
1144 void sane_close( SANE_Handle handle )
1150 /* remove handle from list of open handles: */
1154 if( s == handle )
1160 DBG( _DBG_ERROR, "close: invalid handle %p\n", handle);
1190 SANE_Status sane_control_option( SANE_Handle handle, SANE_Int option,
1194 U12_Scanner *s = (U12_Scanner *)handle;
1468 sane_get_option_descriptor( SANE_Handle handle, SANE_Int option )
1470 U12_Scanner *s = (U12_Scanner *)handle;
1480 SANE_Status sane_get_parameters( SANE_Handle handle, SANE_Parameters *params )
1486 U12_Scanner *s = (U12_Scanner *)handle;
1545 SANE_Status sane_start( SANE_Handle handle )
1547 U12_Scanner *s = (U12_Scanner *)handle;
1568 status = sane_get_parameters (handle, NULL);
1751 SANE_Status sane_read( SANE_Handle handle, SANE_Byte *data,
1754 U12_Scanner *s = (U12_Scanner*)handle;
1811 void sane_cancel( SANE_Handle handle )
1813 U12_Scanner *s = (U12_Scanner *)handle;
1823 SANE_Status sane_set_io_mode( SANE_Handle handle, SANE_Bool non_blocking )
1825 U12_Scanner *s = (U12_Scanner *)handle;
1850 SANE_Status sane_get_select_fd( SANE_Handle handle, SANE_Int * fd )
1852 U12_Scanner *s = (U12_Scanner *)handle;