Lines Matching refs:req
353 SANE_Authorization_Req req;
440 sanei_w_authorization_req (&wire, &req);
447 if (req.username)
448 strcpy (username, req.username);
449 if (req.password)
450 strcpy (password, req.password);
451 if (!req.resource || strcmp (req.resource, res) != 0)
455 res, req.resource);
457 sanei_w_free (&wire, (WireCodecFunc) sanei_w_authorization_req, &req);
1342 SANE_Init_Req req;
1370 sanei_w_init_req (w, &req);
1378 if (req.username)
1379 default_username = strdup (req.username);
1381 sanei_w_free (w, (WireCodecFunc) sanei_w_init_req, &req);
1990 SANE_Control_Option_Req req;
1993 sanei_w_control_option_req (w, &req);
1994 if (w->status || (unsigned) req.handle >= (unsigned) num_handles
1995 || !handle[req.handle].inuse)
2000 , req.handle, strerror (w->status));
2010 && req.value_type == SANE_TYPE_STRING
2011 && req.action == SANE_ACTION_GET_VALUE)
2013 if (req.value)
2015 /* FIXME: If req.value contains embedded NUL
2020 w->allocated_memory -= (1 + strlen (req.value));
2021 free (req.value);
2023 req.value = malloc (req.value_size);
2024 if (!req.value)
2029 "h=%d (%s)\n", req.handle, strerror (w->status));
2032 memset (req.value, 0, req.value_size);
2033 w->allocated_memory += req.value_size;
2039 be_handle = handle[req.handle].handle;
2040 reply.status = sane_control_option (be_handle, req.option,
2041 req.action, req.value,
2043 reply.value_type = req.value_type;
2044 reply.value_size = req.value_size;
2045 reply.value = req.value;
2051 sanei_w_free (w, (WireCodecFunc) sanei_w_control_option_req, &req);