Enable the status event.
camera_error_t camera_enable_status_event(camera_handle_t handle, camera_eventkey_t *key, struct sigevent *event)
The handle returned by a call to the camera_open() function.
A pointer to a camera_eventkey_t. This argument it is required for future function calls to identify the proper event.
A pointer to a sigevent. The sigevent must be initialized by the caller. This is the sigevent that will be sent back to the user when the event occurs.
Use this function to enable the status event, which is signalled when there is additional data to be reported, relevant to the current mode. Call this function when configuring the Camera API for event mode instead of callback mode
CAMERA_OK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.