summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-08-23 12:02:21 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-08-23 12:02:21 -0700
commit6c32677db33565fc2798b96b03dd19be2f81084c (patch)
treed42adfc0445d8c6d2824d00231ae65737c7e6922 /include
parenta931e9a15840f9074f1803b5adb2f23b40a1ab1b (diff)
parentcaaf7fe3a407c764f643585d050c16f5fb56503c (diff)
downloadframeworks_base-6c32677db33565fc2798b96b03dd19be2f81084c.zip
frameworks_base-6c32677db33565fc2798b96b03dd19be2f81084c.tar.gz
frameworks_base-6c32677db33565fc2798b96b03dd19be2f81084c.tar.bz2
am caaf7fe3: am 271c1bfd: Merge "Handle the camera open failure better." into gingerbread
Merge commit 'caaf7fe3a407c764f643585d050c16f5fb56503c' * commit 'caaf7fe3a407c764f643585d050c16f5fb56503c': Handle the camera open failure better.
Diffstat (limited to 'include')
-rw-r--r--include/camera/CameraHardwareInterface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/camera/CameraHardwareInterface.h b/include/camera/CameraHardwareInterface.h
index 1529db7..6a66e3c 100644
--- a/include/camera/CameraHardwareInterface.h
+++ b/include/camera/CameraHardwareInterface.h
@@ -221,6 +221,7 @@ public:
*/
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