Werner Smekal <[EMAIL PROTECTED]> writes:

> We could gather this infos in the wiki and create therefore an 
> "abstract" reference driver. In the future it would be easier to write 
> drivers, since there is a reference.
>
> What do you think about that? Apart from that you may think this is a 
> good idea - would you as developers also contribute to this list (either 
> situations and solutions)?
>

I think it is a good idea.  In fact, I have created an abstract driver
for an interactive device.  I wanted to create a consistent user
interface for both X11 and MS Windows.  In order to achieve that, I
split the driver into two parts:  The real device driver and the
abstract driver.

The real device driver defines the dispatch setup function (and the
dummy function if it is disabled).  The dispatch table is configured to
point to functions in the abstract driver.  The abstract driver calls
the underlying API calls through a function pointer.

I have attached my  abstract driver as a strawman.  It is a work in
progress, so it is a bit crude still.

Attachment: interactive.c
Description: Binary data

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to