Lines Matching defs:reply

377 	SANE_Open_Reply reply;
379 memset (&reply, 0, sizeof (reply));
380 reply.resource_to_authorize = (char *) res;
381 sanei_w_reply (&wire, (WireCodecFunc) sanei_w_open_reply, &reply);
387 SANE_Control_Option_Reply reply;
389 memset (&reply, 0, sizeof (reply));
390 reply.resource_to_authorize = (char *) res;
392 (WireCodecFunc) sanei_w_control_option_reply, &reply);
398 SANE_Start_Reply reply;
400 memset (&reply, 0, sizeof (reply));
401 reply.resource_to_authorize = (char *) res;
402 sanei_w_reply (&wire, (WireCodecFunc) sanei_w_start_reply, &reply);
1340 SANE_Init_Reply reply;
1388 reply.version_code = SANE_VERSION_CODE (V_MAJOR, V_MINOR,
1409 reply.status = status;
1411 reply.version_code = 0;
1412 sanei_w_reply (w, (WireCodecFunc) sanei_w_init_reply, &reply);
1422 start_scan (Wire * w, int h, SANE_Start_Reply * reply)
1448 reply->status = SANE_STATUS_IO_ERROR;
1457 reply->status = SANE_STATUS_IO_ERROR;
1503 reply->status = SANE_STATUS_IO_ERROR;
1511 reply->status = SANE_STATUS_IO_ERROR;
1519 reply->status = SANE_STATUS_IO_ERROR;
1527 reply->port = ntohs (sin->sin_port);
1532 reply->port = ntohs (sin6->sin6_port);
1539 DBG (DBG_MSG, "start_scan: using port %d for data\n", reply->port);
1541 reply->status = sane_start (be_handle);
1542 if (reply->status == SANE_STATUS_GOOD)
1554 start_scan (Wire * w, int h, SANE_Start_Reply * reply)
1569 reply->status = SANE_STATUS_IO_ERROR;
1578 reply->status = SANE_STATUS_IO_ERROR;
1598 reply->status = SANE_STATUS_IO_ERROR;
1606 reply->status = SANE_STATUS_IO_ERROR;
1614 reply->status = SANE_STATUS_IO_ERROR;
1618 reply->port = ntohs (sin.sin_port);
1620 DBG (DBG_MSG, "start_scan: using port %d for data\n", reply->port);
1622 reply->status = sane_start (be_handle);
1623 if (reply->status == SANE_STATUS_GOOD)
1848 SANE_Get_Devices_Reply reply;
1850 reply.status =
1851 sane_get_devices ((const SANE_Device ***) &reply.device_list,
1853 sanei_w_reply (w, (WireCodecFunc) sanei_w_get_devices_reply, &reply);
1859 SANE_Open_Reply reply;
1875 reply.status = SANE_STATUS_INVAL;
1876 sanei_w_reply (w, (WireCodecFunc) sanei_w_open_reply, &reply);
1895 memset (&reply, 0, sizeof (reply));
1896 reply.status = i;
1897 sanei_w_reply (w, (WireCodecFunc) sanei_w_open_reply, &reply);
1904 memset (&reply, 0, sizeof (reply));
1905 reply.status = SANE_STATUS_INVAL;
1906 sanei_w_reply (w, (WireCodecFunc) sanei_w_open_reply, &reply);
1922 memset (&reply, 0, sizeof (reply)); /* avoid leaking bits */
1923 reply.status = SANE_STATUS_ACCESS_DENIED;
1930 memset (&reply, 0, sizeof (reply)); /* avoid leaking bits */
1931 reply.status = sane_open (name, &be_handle);
1933 sane_strstatus (reply.status));
1936 if (reply.status == SANE_STATUS_GOOD)
1940 reply.status = SANE_STATUS_NO_MEM;
1944 reply.handle = h;
1950 sanei_w_reply (w, (WireCodecFunc) sanei_w_open_reply, &reply);
1991 SANE_Control_Option_Reply reply;
2038 memset (&reply, 0, sizeof (reply)); /* avoid leaking bits */
2040 reply.status = sane_control_option (be_handle, req.option,
2042 &reply.info);
2043 reply.value_type = req.value_type;
2044 reply.value_size = req.value_size;
2045 reply.value = req.value;
2050 &reply);
2057 SANE_Get_Parameters_Reply reply;
2064 reply.status = sane_get_parameters (be_handle, &reply.params);
2067 &reply);
2073 SANE_Start_Reply reply;
2080 memset (&reply, 0, sizeof (reply)); /* avoid leaking bits */
2081 reply.byte_order = SANE_NET_LITTLE_ENDIAN;
2083 reply.byte_order = SANE_NET_BIG_ENDIAN;
2086 reply.status = SANE_STATUS_DEVICE_BUSY;
2088 fd = start_scan (w, h, &reply);
2090 sanei_w_reply (w, (WireCodecFunc) sanei_w_start_reply, &reply);
2093 if (reply.status == SANE_STATUS_GOOD)
2164 if (reply.status == SANE_STATUS_GOOD)