kopia lustrzana https://gitlab.com/sane-project/website
88 wiersze
4.1 KiB
HTML
88 wiersze
4.1 KiB
HTML
|
<!-- received="Fri Jan 24 13:36:54 1997 MST" -->
|
||
|
<!-- sent="Fri, 24 Jan 1997 15:27:56 +0100 (MET)" -->
|
||
|
<!-- name="becka@sunserver1.rz.uni-duesseldorf.de" -->
|
||
|
<!-- email="becka@sunserver1.rz.uni-duesseldorf.de" -->
|
||
|
<!-- subject="Get-Option ..." -->
|
||
|
<!-- id="m0vnmbk-000BYVC@charon.beck-sw.de" -->
|
||
|
<!-- inreplyto="" -->
|
||
|
<title>sane-devel: Get-Option ...</title>
|
||
|
<h1>Get-Option ...</h1>
|
||
|
<a href="mailto:becka@sunserver1.rz.uni-duesseldorf.de"><i>becka@sunserver1.rz.uni-duesseldorf.de</i></a><br>
|
||
|
<i>Fri, 24 Jan 1997 15:27:56 +0100 (MET)</i>
|
||
|
<p>
|
||
|
<ul>
|
||
|
<li> <b>Messages sorted by:</b> <a href="date.html#42">[ date ]</a><a href="index.html#42">[ thread ]</a><a href="subject.html#42">[ subject ]</a><a href="author.html#42">[ author ]</a>
|
||
|
<!-- next="start" -->
|
||
|
<li> <b>Next message:</b> <a href="0043.html">becka@sunserver1.rz.uni-duesseldorf.de: "List problem ?"</a>
|
||
|
<li> <b>Previous message:</b> <a href="0041.html">becka@sunserver1.rz.uni-duesseldorf.de: "Netsane working. Just making the diffs ..."</a>
|
||
|
<!-- nextthread="start" -->
|
||
|
<li> <b>Next in thread:</b> <a href="0044.html">David Mosberger: "Re: Get-Option ..."</a>
|
||
|
<li> <b>Maybe reply:</b> <a href="0044.html">David Mosberger: "Re: Get-Option ..."</a>
|
||
|
<li> <b>Maybe reply:</b> <a href="0046.html">David Mosberger-Tang: "Re: Get-Option ..."</a>
|
||
|
<!-- reply="end" -->
|
||
|
</ul>
|
||
|
<!-- body="start" -->
|
||
|
Hi Folks !<br>
|
||
|
<p>
|
||
|
I just noticed the cause for my problems to set an option with the<br>
|
||
|
commandline scan program ...<br>
|
||
|
<p>
|
||
|
I can only set the LAST option, as it seems the program relies on ALL<br>
|
||
|
options to be kept valid, while netsane overwrites always the same<br>
|
||
|
option-descriptor.<br>
|
||
|
<p>
|
||
|
Well this is no problem, and I will change netsane accordingly, as it might<br>
|
||
|
be necessary lateron anyway for descriptor caching, but we should state<br>
|
||
|
that in the documentation just in case we get more backends that dynamically<br>
|
||
|
generate their option-values.<br>
|
||
|
<p>
|
||
|
Current documentation is :<br>
|
||
|
<p>
|
||
|
\subsection{\code{sane\_get\_option\_descriptor}}<br>
|
||
|
<p>
|
||
|
This function is used to access option descriptors. The function<br>
|
||
|
returns the option descriptor for option number \code{n} of the device<br>
|
||
|
represented by handle \code{h}. Option number 0 is guaranteed to be a<br>
|
||
|
valid option. Its value is an integer that specifies the number of<br>
|
||
|
options that are available for device handle \code{h} (the count<br>
|
||
|
includes option 0). If $n$ is not a valid option index, the function<br>
|
||
|
returns \code{NULL}.<br>
|
||
|
\begin{quote}\index{sane\_get\_option\_descriptor}<br>
|
||
|
\begin{verbatim}<br>
|
||
|
const SANE_Option_Descriptor *<br>
|
||
|
sane_get_option_descriptor (SANE_Handle h, SANE_Int n);<br>
|
||
|
\end{verbatim}<br>
|
||
|
\end{quote}<br>
|
||
|
<p>
|
||
|
We probably should add :<br>
|
||
|
<p>
|
||
|
The acquired option descriptor stays valid at the returned address until<br>
|
||
|
a "reload-option" is requested or the device is closed.<br>
|
||
|
<p>
|
||
|
CU,Andy<br>
|
||
|
<p>
|
||
|
<pre>
|
||
|
--
|
||
|
==============================================================================
|
||
|
Andreas Beck | Email : <<a href="mailto:becka@sunserver1.rz.uni-duesseldorf.de">becka@sunserver1.rz.uni-duesseldorf.de</a>>
|
||
|
=== World-Wide-Web URL : <a href="http://sunserver1.rz.uni-duesseldorf.de/~becka">http://sunserver1.rz.uni-duesseldorf.de/~becka</a> ===
|
||
|
==============================================================================
|
||
|
<p>
|
||
|
<pre>
|
||
|
---
|
||
|
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
|
||
|
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@azstarnet.com">majordomo@azstarnet.com</a>
|
||
|
</pre>
|
||
|
<!-- body="end" -->
|
||
|
<p>
|
||
|
<ul>
|
||
|
<!-- next="start" -->
|
||
|
<li> <b>Next message:</b> <a href="0043.html">becka@sunserver1.rz.uni-duesseldorf.de: "List problem ?"</a>
|
||
|
<li> <b>Previous message:</b> <a href="0041.html">becka@sunserver1.rz.uni-duesseldorf.de: "Netsane working. Just making the diffs ..."</a>
|
||
|
<!-- nextthread="start" -->
|
||
|
<li> <b>Next in thread:</b> <a href="0044.html">David Mosberger: "Re: Get-Option ..."</a>
|
||
|
<li> <b>Maybe reply:</b> <a href="0044.html">David Mosberger: "Re: Get-Option ..."</a>
|
||
|
<li> <b>Maybe reply:</b> <a href="0046.html">David Mosberger-Tang: "Re: Get-Option ..."</a>
|
||
|
<!-- reply="end" -->
|
||
|
</ul>
|