diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-02-13 08:57:48 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:46 -0400 |
commit | 2ba588942c45a03a29a7a097e62bf0beceddb0e8 (patch) | |
tree | 8bb6dbc96fcf2f6b68cd933626b9d7b60fe318f0 /include | |
parent | 1b6f1d9603a46a73ceed8daf7a3285559727fec3 (diff) |
V4L/DVB (10544): v4l2-common: add comments warning that about the sort order
Control arrays as are used with v4l2_ctrl_next must be sorted from
low to high. Add a comment at the top of all such arrays to warn
about this.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/v4l2-common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h index 1637cc302697..de785da4564c 100644 --- a/include/media/v4l2-common.h +++ b/include/media/v4l2-common.h | |||
@@ -107,6 +107,11 @@ int v4l2_ctrl_query_menu(struct v4l2_querymenu *qmenu, | |||
107 | struct v4l2_queryctrl *qctrl, const char **menu_items); | 107 | struct v4l2_queryctrl *qctrl, const char **menu_items); |
108 | #define V4L2_CTRL_MENU_IDS_END (0xffffffff) | 108 | #define V4L2_CTRL_MENU_IDS_END (0xffffffff) |
109 | int v4l2_ctrl_query_menu_valid_items(struct v4l2_querymenu *qmenu, const u32 *ids); | 109 | int v4l2_ctrl_query_menu_valid_items(struct v4l2_querymenu *qmenu, const u32 *ids); |
110 | |||
111 | /* Note: ctrl_classes points to an array of u32 pointers. Each u32 array is a | ||
112 | 0-terminated array of control IDs. Each array must be sorted low to high | ||
113 | and belong to the same control class. The array of u32 pointers must also | ||
114 | be sorted, from low class IDs to high class IDs. */ | ||
110 | u32 v4l2_ctrl_next(const u32 * const *ctrl_classes, u32 id); | 115 | u32 v4l2_ctrl_next(const u32 * const *ctrl_classes, u32 id); |
111 | 116 | ||
112 | /* ------------------------------------------------------------------------- */ | 117 | /* ------------------------------------------------------------------------- */ |