v4l2_ctrl_add_handler(9) Add all controls from handler add to handler hdl.

SYNOPSIS

int v4l2_ctrl_add_handler(struct v4l2_ctrl_handler * hdl, struct v4l2_ctrl_handler * add, bool (*filter) (const struct v4l2_ctrl *ctrl));

ARGUMENTS

hdl

The control handler.

add

The control handler whose controls you want to add to the hdl control handler.

filter

This function will filter which controls should be added.

DESCRIPTION

Does nothing if either of the two handlers is a NULL pointer. If filter is NULL, then all controls are added. Otherwise only those controls for which filter returns true will be added. In case of an error hdl->error will be set to the error code (if it wasn't set already).

COPYRIGHT