This RPC is used to control (inquire, set, or set to automatic) a specific option of a remote SANE device.
| request: | reply: |
| SANE_Word handle | SANE_Status status |
| SANE_Word option | SANE_Word info |
| SANE_Word action | SANE_Word value_type |
| SANE_Word value_type | SANE_Word value_size |
| SANE_Word value_size | void *value |
| void *value | SANE_String *resource |
In the reply, argument resource is set to the name of the resource that must be authorized before this call can be retried. If this value is non-NULL, all other arguments have undefined values (see Section 5.2.10 for details on how to authorize a resource). Argument status indicates the completion status. If the value is anything other than SANE_STATUS_SUCCESS, the remainder of the reply has undefined values. The info argument returns the information on how well the backend was able to satisfy the request. For details, see the description of the corresponding argument in Section 4.3.7. Arguments value_type and value_size have the same values as the arguments by the same name in corresponding request. The values are repeated here to ensure that both the request and the reply are self-contained (i.e., they can be encoded and decoded independently). Argument value is holds the value of the option that has become effective as a result of this RPC.