summaryrefslogtreecommitdiff
path: root/src/android/camera_ops.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-01-20 01:09:34 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-02-13 13:23:23 +0200
commitda3f50ee9cdb6896b365357b0d35577344f72ba4 (patch)
tree4e3b31244adeb18f0458992153ab77ce47dd1c93 /src/android/camera_ops.h
parent8a8502ec0ea5e64a0c44eb18aac0ecd4b6771e6b (diff)
android: Remove internal thread
Now that libcamera creates threads internally and doesn't rely on an application-provided event loop, remove the thread from the Android Camera HAL layer. The CameraProxy class becomes meaningless, remove it and communicate directly from the CameraHalManager to the CameraDevice. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/camera_ops.h')
-rw-r--r--src/android/camera_ops.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/android/camera_ops.h b/src/android/camera_ops.h
new file mode 100644
index 00000000..304e7b85
--- /dev/null
+++ b/src/android/camera_ops.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * Copyright (C) 2019, Google Inc.
+ *
+ * camera_ops.h - Android Camera HAL Operations
+ */
+#ifndef __ANDROID_CAMERA_OPS_H__
+#define __ANDROID_CAMERA_OPS_H__
+
+#include <hardware/camera3.h>
+
+int hal_dev_close(hw_device_t *hw_device);
+extern camera3_device_ops hal_dev_ops;
+
+#endif /* __ANDROID_CAMERA_OPS_H__ */