[lcdproc] Config parsing, loading libraries...blah, blah, blah :)
Matt
madmatt@bits.bris.ac.uk
Mon, 26 Mar 2001 20:18:26 +0100 (BST)
>From what we discussed ages ago, we agreed on the following syntax for the
config file:
globaloption1=foo
globaloption2=bar
[driver1]
driver1option1=/dev/ttyS1
driver1option2=9600 8 N
[driver2]
driver2option1=0x378
# or ; comment
The [driver1] section will make LCDd attempt to load the driver from
libdriver1.so, etc. then it'll call the drivers init() passing a
table/hash of those options, !BANG! one screen will be available.
Then it'll try to open libdriver2.so, if driver1 == driver2, you'll get
the handle to libdriver1.so, no biggie. Call the init() again passing the
table/hash of the options under the [driver2] section, !BANG! another
screen will be available, both from the same driver.
I imagine the init() will return an id for each valid call, and that is
used by each subsequent call to any driver functions.
At least, that's how I imagine it (in a simple form)
Matt
-----------------------------------------------------------
To unsubscribe from this list send a blank message to
lcdproc-unsubscribe@lists.omnipotent.net