|
From: Geert U. <ge...@li...> - 2001-06-15 09:55:16
|
On Fri, 15 Jun 2001, Ghozlane Toumi wrote:
> So the question is how do i support 2.2/2.4 *and* the upcomming 2.5 API
> without maintainig 3 separate sources : i have to work on the internals of
> the driver,
> and i don't feel like updating 3 files every time ...
>
> any suggestions ?
> how do you guys cope with that ?
Disclaimer: I didn't do any Ruby driver yet. Atyfb is in my (long) todo bucket.
I _think_ you can nicely encapsulate a 2.5 style driver using a 2.4
compatibility layer. Just add some stubs that take care of get_{var,fix}() and
of the extra con argument.
Since these stubs have to be the same for each driver, what we need is some
include file that provides the compatibility layer, and some additional #ifdefs
I guess, or clever macros.
Is this correct, James?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li...
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
|