diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-07-20 07:12:02 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-23 18:00:17 -0400 |
commit | 35ea11ff84719b1bfab2909903a9640a86552fd1 (patch) | |
tree | 5dff79cda158d7d2d4c8942d1b781c0108b95159 /include/media/v4l2-common.h | |
parent | e81cf44428b9540d489a12880663488708bbb9c1 (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.h | 15 |
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 | |||
84 | struct v4l2_prio_state { | ||
85 | atomic_t prios[4]; | ||
86 | }; | ||
87 | int v4l2_prio_init(struct v4l2_prio_state *global); | ||
88 | int v4l2_prio_change(struct v4l2_prio_state *global, enum v4l2_priority *local, | ||
89 | enum v4l2_priority new); | ||
90 | int v4l2_prio_open(struct v4l2_prio_state *global, enum v4l2_priority *local); | ||
91 | int v4l2_prio_close(struct v4l2_prio_state *global, enum v4l2_priority *local); | ||
92 | enum v4l2_priority v4l2_prio_max(struct v4l2_prio_state *global); | ||
93 | int 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 | ||
84 | int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl, | 99 | int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl, |