[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
parsing runtime options in netfs
From: |
Marcus Brinkmann |
Subject: |
parsing runtime options in netfs |
Date: |
Fri, 30 Aug 2002 02:15:03 +0200 |
User-agent: |
Mutt/1.4i |
Hi,
I want to parse runtime options in the console server, which uses netfs.
To parse the options for the console, I am using state->input and store a
pointer to the console structure there. I could use a global variable, but
in the name of modularity I wanted to have the cons structure a local of
main() and do it like the argp manual suggests, and passed the pointer down
to the parser.
However, for runtime options, there is no such input value provided in
netfs/set-options.c. Maybe we should pass the root node there, for the lack
of some other global control structure that identifies the netfs managed
filesystem? I have a hook to the cons structure in the root node.
I could then have the code rearranged to parse the options after creating
the root node, and use the same parser for startup.
Ideas?
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' GNU http://www.gnu.org marcus@gnu.org
Marcus Brinkmann The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/
- parsing runtime options in netfs,
Marcus Brinkmann <=