register_status_callback_func_t

Updated: April 19, 2023

Register a callback to notify users about stream status changes

Synopsis:

#include <camera/external_camera_api.h>
typedef int(* register_status_callback_func_t)(void *handle,
            camera_unit_t unit,
            status_callback func);

Arguments:

handle
The handle that's returned from calling the function open_external_camera_func_t.
unit
The camera unit this camera corresponds to. See camera_unit_t for details.
func
The function that can be called by the external camera library to notify users of a change in stream status.

Library:

libcamapi

Description:

This function registers a function that can be called by the external camera library to notify users of a change in stream status.

Note:

This function is optional. If it is not present, no status callback updates will be provided by the external camera library.

Returns:

CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.