camera_module_callbacks Struct Reference

#include <camera_common.h>

Data Fields

void(* camera_device_status_change )(const struct camera_module_callbacks *, int camera_id, int new_status)

Detailed Description

Callback functions for the camera HAL module to use to inform the framework of changes to the camera subsystem. These are called only by HAL modules implementing version CAMERA_MODULE_API_VERSION_2_1 or higher of the HAL module API interface.

Definition at line 242 of file camera_common.h.

Field Documentation

void(* camera_device_status_change)(const struct camera_module_callbacks *, int camera_id, int new_status)


Callback to the framework to indicate that the state of a specific camera device has changed. At module load time, the framework will assume all camera devices are in the CAMERA_DEVICE_STATUS_PRESENT state. The HAL must call this method to inform the framework of any initially NOT_PRESENT devices.

camera_module_callbacks: The instance of camera_module_callbacks_t passed to the module with set_callbacks.

camera_id: The ID of the camera device that has a new status.

new_status: The new status code, one of the camera_device_status_t enums, or a platform-specific status.

Definition at line 262 of file camera_common.h.

The documentation for this struct was generated from the following file: