aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-event.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2011-06-13 16:44:42 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:53:31 -0400
commit523f46d6aba9dcb0a2d0fc474ca884e93a7cf198 (patch)
tree5c73cecf3d9786868ac03c93f7df2df6a465d9a6 /include/media/v4l2-event.h
parent95904d4b6a188ea2f0f1781498f6ca626e21b9ac (diff)
[media] v4l2-events/fh: merge v4l2_events into v4l2_fh
Drivers that supported events used to be rare, but now that controls can also raise events this will become much more common since almost all drivers have controls. This means that keeping struct v4l2_events as a separate struct make no more sense. Merging it into struct v4l2_fh simplifies things substantially as it is now an integral part of the filehandle 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.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/media/v4l2-event.h b/include/media/v4l2-event.h
index 45e9c1e05513..042b893035de 100644
--- a/include/media/v4l2-event.h
+++ b/include/media/v4l2-event.h
@@ -43,17 +43,6 @@ struct v4l2_subscribed_event {
43 u32 id; 43 u32 id;
44}; 44};
45 45
46struct v4l2_events {
47 wait_queue_head_t wait;
48 struct list_head subscribed; /* Subscribed events */
49 struct list_head free; /* Events ready for use */
50 struct list_head available; /* Dequeueable event */
51 unsigned int navailable;
52 unsigned int nallocated; /* Number of allocated events */
53 u32 sequence;
54};
55
56int v4l2_event_init(struct v4l2_fh *fh);
57int v4l2_event_alloc(struct v4l2_fh *fh, unsigned int n); 46int v4l2_event_alloc(struct v4l2_fh *fh, unsigned int n);
58void v4l2_event_free(struct v4l2_fh *fh); 47void v4l2_event_free(struct v4l2_fh *fh);
59int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event, 48int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event,