Gets the value of the specified SANE option.
#include "ltsane.h"
L_LTSANE_API L_INT L_SaneGetOptionValue(hSane, optionName, value)
SANE handle
SANE option name
SANE option value
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Gets the value for the specified SANE option name. Each call to L_SaneGetOptionValue requires a call to L_SaneFreeMemory in order to free the memory used for L_SaneGetOptionValue.
Linux
For an example, refer to L_SaneAcquire.