summaryrefslogtreecommitdiffstats
path: root/include/hardware/camera.h
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2012-03-27 16:15:25 -0700
committerEino-Ville Talvala <etalvala@google.com>2012-03-27 16:15:25 -0700
commitddc026e39344169f64f4696174a4d1269d069557 (patch)
treeba15c372daac9b20d81bf260c906e2fd33555567 /include/hardware/camera.h
parenteb8fb508148d809166a30783a14e186fda0e31c9 (diff)
downloadhardware_libhardware-ddc026e39344169f64f4696174a4d1269d069557.zip
hardware_libhardware-ddc026e39344169f64f4696174a4d1269d069557.tar.gz
hardware_libhardware-ddc026e39344169f64f4696174a4d1269d069557.tar.bz2
Add specific version number constants to Camera HAL.
These constants should be used by HAL implementations to indicate which versions of the module and device APIs they support. Change-Id: I4b6eae278481545694e6a1827833b5958c26720c
Diffstat (limited to 'include/hardware/camera.h')
-rw-r--r--include/hardware/camera.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/hardware/camera.h b/include/hardware/camera.h
index 3530f8d..b7182f8 100644
--- a/include/hardware/camera.h
+++ b/include/hardware/camera.h
@@ -20,13 +20,14 @@
#include "camera_common.h"
/**
- * Camera device HAL, initial version [ HARDWARE_DEVICE_API_VERSION(1,0) ]
+ * Camera device HAL, initial version [ CAMERA_DEVICE_API_VERSION_1_0 ]
*
* Supports the android.hardware.Camera API.
*
* Camera devices that support this version of the HAL must return a value in
* the range HARDWARE_DEVICE_API_VERSION(0,0)-(1,FF) in
- * camera_device_t.common.version.
+ * camera_device_t.common.version. CAMERA_DEVICE_API_VERSION_1_0 is the
+ * recommended value.
*
* Camera modules that implement version 2.0 or higher of camera_module_t must
* also return the value of camera_device_t.common.version in
@@ -281,7 +282,8 @@ typedef struct camera_device_ops {
typedef struct camera_device {
/**
* camera_device.common.version must be in the range
- * HARDWARE_DEVICE_API_VERSION(0,0)-(1,FF). (1,0) is recommended.
+ * HARDWARE_DEVICE_API_VERSION(0,0)-(1,FF). CAMERA_DEVICE_API_VERSION_1_0 is
+ * recommended.
*/
hw_device_t common;
camera_device_ops_t *ops;