diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2011-06-13 17:55:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:53:31 -0400 |
commit | 77068d36d8b9e9902a89b4bb01011d41926f5420 (patch) | |
tree | 4fde4974ce56e52acac5c7c8d873d300e946adcc /include/media/v4l2-event.h | |
parent | 523f46d6aba9dcb0a2d0fc474ca884e93a7cf198 (diff) |
[media] v4l2-ctrls/event: remove struct v4l2_ctrl_fh, instead use v4l2_subscribed_event
The v4l2_ctrl_fh struct connected v4l2_ctrl with v4l2_fh so the control
would know which filehandles subscribed to it. However, it is much easier
to use struct v4l2_subscribed_event directly for that and get rid of that
intermediate struct.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/v4l2-event.h')
-rw-r--r-- | include/media/v4l2-event.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/media/v4l2-event.h b/include/media/v4l2-event.h index 042b893035de..eda17f8d78bc 100644 --- a/include/media/v4l2-event.h +++ b/include/media/v4l2-event.h | |||
@@ -38,9 +38,18 @@ struct v4l2_kevent { | |||
38 | }; | 38 | }; |
39 | 39 | ||
40 | struct v4l2_subscribed_event { | 40 | struct v4l2_subscribed_event { |
41 | /* list node for the v4l2_fh->subscribed list */ | ||
41 | struct list_head list; | 42 | struct list_head list; |
43 | /* event type */ | ||
42 | u32 type; | 44 | u32 type; |
45 | /* associated object ID (e.g. control ID) */ | ||
43 | u32 id; | 46 | u32 id; |
47 | /* copy of v4l2_event_subscription->flags */ | ||
48 | u32 flags; | ||
49 | /* filehandle that subscribed to this event */ | ||
50 | struct v4l2_fh *fh; | ||
51 | /* list node that hooks into the object's event list (if there is one) */ | ||
52 | struct list_head node; | ||
44 | }; | 53 | }; |
45 | 54 | ||
46 | int v4l2_event_alloc(struct v4l2_fh *fh, unsigned int n); | 55 | int v4l2_event_alloc(struct v4l2_fh *fh, unsigned int n); |