[sane-devel] Definition of "struct option"...
henning at meier-geinitz.de
Sun Feb 19 17:46:02 UTC 2006
On 2006-02-15 19:51, shanthan Kumar wrote:
> I am doing a project on avision scanner driver, in which my role is
> to port the Sane's application scanimage.c file to an application in
You are aware that SANE already builds on "normal" Windows?
> Here, in the source code of this application, there is an array
> basic_options of type "struct option" initialised with some no. of
> values. and also a variable all_options of type "struct option". I am
> unable to make out as what this structure option 's members are,
> please some one help me in defining the members and their type of
> this structure.
This is for getopt_long and defined in getopt.h.
> And also in the array basic_options, the members are initialised
> with various strings and the second value in every set of
> initialisations, its one of these three values: i.e.,
> required_argument, no_argument, optional_argument,,, unable to make
> out as what these variables are, I mean where they are coming from,
> and their flow, someone please help me to deal with this simple
> problem, for which I would be very thank full..
More information about the sane-devel