diff options
Diffstat (limited to 'include/camera/CameraHardwareInterface.h')
| -rw-r--r-- | include/camera/CameraHardwareInterface.h | 12 | 
1 files changed, 10 insertions, 2 deletions
| diff --git a/include/camera/CameraHardwareInterface.h b/include/camera/CameraHardwareInterface.h index d877c74a753e..6a66e3cfb5b0 100644 --- a/include/camera/CameraHardwareInterface.h +++ b/include/camera/CameraHardwareInterface.h @@ -213,8 +213,16 @@ public:      virtual status_t dump(int fd, const Vector<String16>& args) const = 0;  }; -/** factory function to instantiate a camera hardware object */ -extern "C" sp<CameraHardwareInterface> openCameraHardware(); +/** + * The functions need to be provided by the camera HAL. + * + * If getNumberOfCameras() returns N, the valid cameraId for getCameraInfo() + * and openCameraHardware() is 0 to N-1. + */ +extern "C" int HAL_getNumberOfCameras(); +extern "C" void HAL_getCameraInfo(int cameraId, struct CameraInfo* cameraInfo); +/* HAL should return NULL if it fails to open camera hardware. */ +extern "C" sp<CameraHardwareInterface> HAL_openCameraHardware(int cameraId);  };  // namespace android | 
