Re: Confusion in usr/include/linux/videodev.h

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


On Wed, 21 Jan 2009 07:10:38 +0530
Jaswinder Singh Rajput <jaswinder@xxxxxxxxxx> wrote:

> usr/include/linux/videodev.h is giving 2 warnings in 'make headers_check':
>  usr/include/linux/videodev.h:19: leaks CONFIG_VIDEO to userspace where it is not valid
>  usr/include/linux/videodev.h:314: leaks CONFIG_VIDEO to userspace where it is not valid
> 
> Whole file is covered with #if defined(CONFIG_VIDEO_V4L1_COMPAT) || !defined (__KERNEL__)
> 
> It means this file is only valid for kernel mode if CONFIG_VIDEO_V4L1_COMPAT is defined but in user mode it is always valid.
> 		
> Can we choose some better alternative Or can we use this file as:
> 
> #ifdef CONFIG_VIDEO_V4L1_COMPAT
> #include <linux/videodev.h>
> #endif

This is somewhat like what we have on audio devices (where there are OSS and ALSA API's).

V4L1 is the old deprecated userspace API for video devices. It is still
required by some userspace applications. So, on userspace, it should be
included. Also, this allows that one userspace app to be compatible with both
V4L2 API (the current one) and the legacy V4L1 one.

It should be noticed that are still a few drivers using the legacy API yet to
be converted.

Cheers,
Mauro

--
video4linux-list mailing list
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]

Add to Google Powered by Linux