aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-common.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-07-20 07:12:02 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-23 18:00:17 -0400
commit35ea11ff84719b1bfab2909903a9640a86552fd1 (patch)
tree5dff79cda158d7d2d4c8942d1b781c0108b95159 /include/media/v4l2-common.h
parente81cf44428b9540d489a12880663488708bbb9c1 (diff)
V4L/DVB (8430): videodev: move some functions from v4l2-dev.h to v4l2-common.h or v4l2-ioctl.h
The functions in a header should not belong to another module. The prio functions belong to v4l2-common.c, so move them to v4l2-common.h. The ioctl functions belong to v4l2-ioctl.c, so create a new v4l2-ioctl.h header and move those functions to it. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include/media/v4l2-common.h')
-rw-r--r--include/media/v4l2-common.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h
index 020d05758bd8..8bbb526a5a24 100644
--- a/include/media/v4l2-common.h
+++ b/include/media/v4l2-common.h
@@ -79,6 +79,21 @@
79 79
80/* ------------------------------------------------------------------------- */ 80/* ------------------------------------------------------------------------- */
81 81
82/* Priority helper functions */
83
84struct v4l2_prio_state {
85 atomic_t prios[4];
86};
87int v4l2_prio_init(struct v4l2_prio_state *global);
88int v4l2_prio_change(struct v4l2_prio_state *global, enum v4l2_priority *local,
89 enum v4l2_priority new);
90int v4l2_prio_open(struct v4l2_prio_state *global, enum v4l2_priority *local);
91int v4l2_prio_close(struct v4l2_prio_state *global, enum v4l2_priority *local);
92enum v4l2_priority v4l2_prio_max(struct v4l2_prio_state *global);
93int v4l2_prio_check(struct v4l2_prio_state *global, enum v4l2_priority *local);
94
95/* ------------------------------------------------------------------------- */
96
82/* Control helper functions */ 97/* Control helper functions */
83 98
84int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl, 99int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl,