Re: Latest V4L2 breaks binary compatibility ??
|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
On Wed, Sep 24, 2003 at 10:50:21AM -0500, Billy Biggs wrote: > Isaac Richards pointed out to me that it seems like the latest V4L2 > patches break binary compatibility. In > http://bytesex.org/patches/2.6.0-test5-2/20_v4l2-2.6.0-test5.diff > > -#define VIDIOC_S_PARM _IOW ('V', 22, struct v4l2_streamparm) > +#define VIDIOC_S_PARM _IOWR ('V', 22, struct v4l2_streamparm) > > -#define VIDIOC_S_CTRL _IOW ('V', 28, struct v4l2_control) > +#define VIDIOC_S_CTRL _IOWR ('V', 28, struct v4l2_control) > > What happened? I fear this will break many apps. It doesn't. Check the complete diff. There also is ... +#define VIDIOC_S_PARM_OLD _IOW ('V', 22, struct v4l2_streamparm) +#define VIDIOC_S_CTRL_OLD _IOW ('V', 28, struct v4l2_control) ... and the new video_fix_command() function which maps VIDIOC_FOOBAR_OLD to VIDIOC_FOOBAR. The patched kernel accepts both old and new ioctls. Gerd -- You have a new virus in /var/mail/kraxel -- Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
[Linux Media] [Older V4L] [Linux DVB] [Video Disk Recorder] [Linux Kernel] [Asterisk] [Photo] [DCCP] [Netdev] [Xorg] [Util Linux NG] [Xfree86] [Free Photo Albums] [Fedora Users] [Fedora Women] [ALSA Users] [ALSA Devel] [SSH] [DVB Maintainers] [Linux USB] [Yosemite Information]