- From: David GLAUDE Mailing" <dglaudemailing AT gmx.net (David GLAUDE Mailing)
- Subject: [Lcdproc] API-v0.5: drvthis and private_data (comment in CVS)
- Date: Wed Dec 5 19:43:01 2001
Joris (and other),
I took the liberty to comment inside the CVS version of the doc for API 0.5.
All the new line start with DG: (easy to remove then).
I know I am maybe late but I don't understand why it is so "complicate" in
the sample
definition you provide...
It is very very C++ to have a "drvthis" pointer but it is not the way I
expected stuff to work.
The pointer to functions are the same for every instance of the driver, they
are not going to change,
nor be different per instance. So the only time we need them are in the init
function.
Within the driver code, if we have to call another function, we will call
the internal one,
not the one via drvthis pointer. Sowe don't need that drvthis (except to
fill it in init).
[who is suppose to alocate the space? (the server) and dealocate? (the
server)].
The only think we need for multiple instance to be possible, is that:
1) in init we alocate a private_data, fill-it and return it to the server.
2) in every function we receive our (instance) copy of private_data.
3) in close we dealocate the private_data.
In private data we have all the stuff that use to be static (frame_buffer,
custom char cache, status).
In your document it seem's that the server, prior to calling an instance,
should call a specific function to put private_data in place.
I don't see the point of this at all.
If you want to keep drvthis in every call, fine... but why that function?
David GLAUDE
- CFontz ROM version and driver issue was: Re: [Lcdproc] Proble m with 0.4.1 and CFontz, (continued)
- CFontz ROM version and driver issue was: Re: [Lcdproc] Proble m with 0.4.1 and CFontz, Trout, Karl, 12/01/2001
- CFontz ROM version and driver issue was: Re: [Lcdproc] Proble m with 0.4.1 and CFontz, Trout, Karl, 12/02/2001
- [Lcdproc] Character set mapping and other API related (was the } issue)., <dglaudemailing AT gmx.net (David GLAUDE Mailing), 12/03/2001
- [Lcdproc] Character set mapping and other API related (was the } issue)., Joris Robijn, 12/03/2001
- [Lcdproc] Character set mapping and other API related (was the } issue)., <dglaudemailing AT gmx.net (David GLAUDE Mailing), 12/03/2001
- [Lcdproc] Character set mapping and other API related (was the } issue)., Joris Robijn, 12/03/2001
- [Lcdproc] Character set mapping and other API related (was the } issue)., <dglaudemailing AT gmx.net (David GLAUDE Mailing), 12/03/2001
- [Lcdproc] API related (was once the } issue)., Joris Robijn, 12/03/2001
- [Lcdproc] API related (was once the } issue)., <dglaudemailing AT gmx.net (David GLAUDE Mailing), 12/04/2001
- [Lcdproc] MtxOrb.c migrating to report.h (in CVS), <dglaudemailing AT gmx.net (David GLAUDE Mailing), 12/05/2001
- [Lcdproc] API-v0.5: drvthis and private_data (comment in CVS), <dglaudemailing AT gmx.net (David GLAUDE Mailing), 12/05/2001
- [Lcdproc] Re: API-v0.5: drvthis and private_data (comment in CVS), Joris Robijn, 12/05/2001
- [Lcdproc] Re: API-v0.5: drvthis and private_data (comment in CVS), Joris Robijn, 12/05/2001
- [Lcdproc] Re: API-v0.5: drvthis and private_data (comment in CVS), <dglaudemailing AT gmx.net (David GLAUDE Mailing), 12/05/2001
- [Lcdproc] Re: API-v0.5: drvthis and private_data (comment in CVS), Joris Robijn, 12/06/2001
- GPL and loadable module + Re: [Lcdproc] Re: API-v0.5: drvthis and private_data (comment in CVS), <dglaudemailing AT gmx.net (David GLAUDE Mailing), 12/06/2001
- [Lcdproc] GPL and loadable module + Re: Re: API-v0.5: drvthis and private_data (comment in CVS), Joris Robijn, 12/06/2001
- [Lcdproc] GPL and loadable module, <dglaudemailing AT gmx.net (David GLAUDE Mailing), 12/07/2001
- [Lcdproc] GPL and loadable module, David Douthitt, 12/10/2001
- [Lcdproc] GPL and loadable module, Joris Robijn, 12/10/2001
- [Lcdproc] GPL and loadable module, <dglaudemailing AT gmx.net (David GLAUDE Mailing), 12/10/2001
Archive powered by MHonArc 2.6.18.