v4l2_ctrl_notify(9) Function to set a notify callback for a control.

SYNOPSIS

void v4l2_ctrl_notify(struct v4l2_ctrl * ctrl, v4l2_ctrl_notify_fnc notify, void * priv);

ARGUMENTS

ctrl

The control.

notify

The callback function.

priv

The callback private handle, passed as argument to the callback.

DESCRIPTION

This function sets a callback function for the control. If ctrl is NULL, then it will do nothing. If notify is NULL, then the notify callback will be removed.

There can be only one notify. If another already exists, then a WARN_ON will be issued and the function will do nothing.

COPYRIGHT