diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2015-04-07 15:55:31 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2015-04-15 15:29:41 -0700 |
commit | 1527f07eb2b2b40f6b8f53a4644e6a400bddb460 (patch) | |
tree | 7b9bf4c2bdbb76d4d81942fab8b345f6430c3f38 /services/camera/libcameraservice/common/CameraModule.h | |
parent | c44111b22c26236cb0b32d3fbd1cc9fad3fb28ff (diff) | |
download | frameworks_av-1527f07eb2b2b40f6b8f53a4644e6a400bddb460.zip frameworks_av-1527f07eb2b2b40f6b8f53a4644e6a400bddb460.tar.gz frameworks_av-1527f07eb2b2b40f6b8f53a4644e6a400bddb460.tar.bz2 |
CameraService: Add support for module init, some logging updates
- Add support for camera HAL module init() method on v2.4
- Add logging for service errors such as failure to init
- Minor cleanup to dumping of event log
Bug: 20016050
Change-Id: I94e18b52c186f16fb096457015f7ae761e867fd8
Diffstat (limited to 'services/camera/libcameraservice/common/CameraModule.h')
-rw-r--r-- | services/camera/libcameraservice/common/CameraModule.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/services/camera/libcameraservice/common/CameraModule.h b/services/camera/libcameraservice/common/CameraModule.h index e285b21..c21092e 100644 --- a/services/camera/libcameraservice/common/CameraModule.h +++ b/services/camera/libcameraservice/common/CameraModule.h @@ -34,6 +34,10 @@ class CameraModule { public: CameraModule(camera_module_t *module); + // Must be called after construction + // Returns OK on success, NO_INIT on failure + int init(); + int getCameraInfo(int cameraId, struct camera_info *info); int getNumberOfCameras(void); int open(const char* id, struct hw_device_t** device); @@ -63,4 +67,3 @@ private: } // namespace android #endif - |