Lines Matching refs:g_handle

46 static struct t_SANE *g_handle = NULL;  variable
261 return g_handle->bb_orblite_exit(); in orblite_exit()
279 g_handle = (SANE_THandle) calloc( 1, sizeof(struct t_SANE) ); in orblite_open()
280 if (!g_handle) in orblite_open()
284 g_handle->Options = (SANE_Option_Descriptor *) calloc( optLast, sizeof(SANE_Option_Descriptor) ); in orblite_open()
285 if (!g_handle->Options) in orblite_open()
288 memcpy( g_handle->Options, DefaultOrbOptions, optLast*sizeof(SANE_Option_Descriptor) ); in orblite_open()
289 g_handle->tag = (char*)malloc(strlen("ORBLITE") + 1); in orblite_open()
290 strcpy(g_handle->tag, "ORBLITE"); in orblite_open()
293 if (bb_load(g_handle, SCAN_PLUGIN_ORBLITE)) in orblite_open()
299 stat = g_handle->bb_orblite_init(version_code, authorize); in orblite_open()
303 stat = g_handle->bb_orblite_get_devices(device_list, local_only); in orblite_open()
307 stat = g_handle->bb_orblite_open(devicename, &g_handle); in orblite_open()
309 *handle = g_handle; in orblite_open()
318 g_handle->bb_orblite_close(g_handle); in orblite_close()
331 return &g_handle->Options[option]; in orblite_get_option_descriptor()
345 return g_handle->bb_orblite_control_option(handle,option,action, value, info); in orblite_control_option()
354 return g_handle->bb_orblite_start(g_handle); in orblite_start()
361 return g_handle->bb_orblite_get_parameters(g_handle, params); in orblite_get_parameters()
369 return g_handle->bb_orblite_read (g_handle, data, max_length, length); in orblite_read()
376 g_handle->bb_orblite_cancel(g_handle); in orblite_cancel()
385 return g_handle->bb_orblite_set_io_mode(g_handle, non_blocking); in orblite_set_io_mode()
392 return g_handle->bb_orblite_get_select_fd(g_handle, fd); in orblite_get_select_fd()