Re: Is there any #ifdef way to detect the new v4l interface?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Duncan Haldane wrote:

Here's my problem: The 2.4.19 changes break hot-unplugging code that uses the old interface.
But they are also present in the 2.4.18
kernels used by RedHat 7.x

Is there any way the preprocessor could detect
the changed interface?  (or RedHat patching)

(I didnt see any #define V4L_VERSION xxxx in videodev.h)

I think
#if defined(video_devdata)
should work. It was introduced in the patch that redesigned the interface.

Careful though... the new interface was broken (and incompatible with the current interface) in kernels that had a video_generic_ioctl() function. IIRC only a few 2.4.19-pre kernels were affected but I can't say that for certain.

--
Mark McClelland
mark@xxxxxxxxxxxxxxxx






[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux