Name

v4l2_ctrl_new_int_menu — Create a new standard V4L2 integer menu control.

Synopsis

struct v4l2_ctrl * v4l2_ctrl_new_int_menu (struct v4l2_ctrl_handler * hdl,
 const struct v4l2_ctrl_ops * ops,
 u32 id,
 u8 max,
 u8 def,
 const s64 * qmenu_int);
 

Arguments

hdl

The control handler.

ops

The control ops.

id

The control ID.

max

The control's maximum value.

def

The control's default value.

qmenu_int

The control's menu entries.

Description

Same as v4l2_ctrl_new_std_menu, but mask is set to 0 and it additionaly takes as an argument an array of integers determining the menu items.

If id refers to a non-integer-menu control, then this function will return NULL.