V4L/DVB: V4L: Events: Add backend

Add event handling backend to V4L2. The backend handles event subscription
and delivery to file handles. Event subscriptions are based on file handle.
Events may be delivered to all subscribed file handles on a device
independent of where they originate from.

Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Sakari Ailus
2010-03-01 05:14:18 -03:00
committed by Mauro Carvalho Chehab
parent fda1021477
commit c3b5b0241f
5 changed files with 366 additions and 2 deletions

View File

@@ -29,10 +29,12 @@
#include <linux/list.h>
struct video_device;
struct v4l2_events;
struct v4l2_fh {
struct list_head list;
struct video_device *vdev;
struct v4l2_events *events; /* events, pending and subscribed */
};
/*