summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2015-04-07 13:47:46 -0700
committerEino-Ville Talvala <etalvala@google.com>2015-04-15 17:26:13 -0700
commitaee4782839de3103ecebca830a6bd49263a37ad3 (patch)
tree42e82a6e64c73cd35ebb93bbc06626cdd180c2b1 /modules
parent33642b9c5763a3ad7cebbe8918a6a8d31f3a63a5 (diff)
downloadhardware_libhardware-aee4782839de3103ecebca830a6bd49263a37ad3.zip
hardware_libhardware-aee4782839de3103ecebca830a6bd49263a37ad3.tar.gz
hardware_libhardware-aee4782839de3103ecebca830a6bd49263a37ad3.tar.bz2
Camera: Add HAL module init method.
For use by Camera HAL libraries to perform one-time initialization steps after the library is loaded. Bug: 20016050 Change-Id: Ia01ae0eafcadece9124ac2cfcc3b1c3939352843
Diffstat (limited to 'modules')
-rw-r--r--modules/camera/CameraHAL.cpp1
-rw-r--r--modules/usbcamera/CameraHAL.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/camera/CameraHAL.cpp b/modules/camera/CameraHAL.cpp
index 06f308f..62ee6d4 100644
--- a/modules/camera/CameraHAL.cpp
+++ b/modules/camera/CameraHAL.cpp
@@ -186,6 +186,7 @@ camera_module_t HAL_MODULE_INFO_SYM __attribute__ ((visibility("default"))) = {
get_vendor_tag_ops : get_vendor_tag_ops,
open_legacy : NULL,
set_torch_mode : NULL,
+ init : NULL,
reserved : {0},
};
} // extern "C"
diff --git a/modules/usbcamera/CameraHAL.cpp b/modules/usbcamera/CameraHAL.cpp
index 98111ef..652e937 100644
--- a/modules/usbcamera/CameraHAL.cpp
+++ b/modules/usbcamera/CameraHAL.cpp
@@ -147,6 +147,7 @@ camera_module_t HAL_MODULE_INFO_SYM __attribute__ ((visibility("default"))) = {
get_vendor_tag_ops : NULL,
open_legacy : NULL,
set_torch_mode : NULL,
+ init : NULL,
reserved : {0},
};
} // extern "C"