diff options
author | Sakari Ailus <sakari.ailus@maxwell.research.nokia.com> | 2010-03-27 10:02:10 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:58:07 -0400 |
commit | d3d7c963562adad92e968df23c425ae964fe9ce2 (patch) | |
tree | 1677fc6591a417c7a2866a342b9270233d17c216 /include | |
parent | c3b5b0241f620a356c97d8f43343e721c718806d (diff) |
V4L/DVB: V4L: Events: Support event handling in do_ioctl
Add support for event handling to do_ioctl.
Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/v4l2-ioctl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h index e8ba0f2efbae..06daa6e8e051 100644 --- a/include/media/v4l2-ioctl.h +++ b/include/media/v4l2-ioctl.h | |||
@@ -21,6 +21,8 @@ | |||
21 | #include <linux/videodev2.h> | 21 | #include <linux/videodev2.h> |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | struct v4l2_fh; | ||
25 | |||
24 | struct v4l2_ioctl_ops { | 26 | struct v4l2_ioctl_ops { |
25 | /* ioctl callbacks */ | 27 | /* ioctl callbacks */ |
26 | 28 | ||
@@ -254,6 +256,11 @@ struct v4l2_ioctl_ops { | |||
254 | int (*vidioc_g_dv_timings) (struct file *file, void *fh, | 256 | int (*vidioc_g_dv_timings) (struct file *file, void *fh, |
255 | struct v4l2_dv_timings *timings); | 257 | struct v4l2_dv_timings *timings); |
256 | 258 | ||
259 | int (*vidioc_subscribe_event) (struct v4l2_fh *fh, | ||
260 | struct v4l2_event_subscription *sub); | ||
261 | int (*vidioc_unsubscribe_event)(struct v4l2_fh *fh, | ||
262 | struct v4l2_event_subscription *sub); | ||
263 | |||
257 | /* For other private ioctls */ | 264 | /* For other private ioctls */ |
258 | long (*vidioc_default) (struct file *file, void *fh, | 265 | long (*vidioc_default) (struct file *file, void *fh, |
259 | int cmd, void *arg); | 266 | int cmd, void *arg); |