Open and close v4l2 devices.
BUG: 29191881
Change-Id: Id740ab30fd8f79b4a2cb99d1e5bef2be7472c992
diff --git a/modules/camera/3_4/Camera.h b/modules/camera/3_4/Camera.h
index ab8f221..3ecd0a8 100644
--- a/modules/camera/3_4/Camera.h
+++ b/modules/camera/3_4/Camera.h
@@ -40,7 +40,7 @@
virtual ~Camera();
// Common Camera Device Operations (see <hardware/camera_common.h>)
- int open(const hw_module_t *module, hw_device_t **device);
+ int openDevice(const hw_module_t *module, hw_device_t **device);
int getInfo(struct camera_info *info);
int close();
@@ -54,6 +54,10 @@
protected:
+ // Connect to the device: open dev nodes, etc.
+ virtual int connect() = 0;
+ // Disconnect from the device: close dev nodes, etc.
+ virtual void disconnect() = 0;
// Initialize static camera characteristics for individual device
virtual camera_metadata_t *initStaticInfo() = 0;
// Initialize device info: facing, orientation, resource cost,