v4l2_ctrl_new_custom — Allocate and initialize a new custom V4L2 control.
struct v4l2_ctrl * v4l2_ctrl_new_custom ( | struct v4l2_ctrl_handler * hdl, |
| const struct v4l2_ctrl_config * cfg, | |
void * priv); |
hdlThe control handler.
cfgThe control's configuration data.
privThe control's driver-specific private data.
If the v4l2_ctrl struct could not be allocated then NULL is returned
and hdl->error is set to the error code (if it wasn't set already).