summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2024-06-19 19:27:54 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2024-06-19 19:32:50 +0900
commit058eb06604c9e0bdf08e552fd0782a404b225212 (patch)
tree9f333e8bfd16b50694202254b68d2cfd31ef5a43
parentb7abd188c76fce1d64b4b4b66b89fc420b244cd0 (diff)
downloadsensor-058eb06604c9e0bdf08e552fd0782a404b225212.tar.gz
sensor-058eb06604c9e0bdf08e552fd0782a404b225212.tar.bz2
sensor-058eb06604c9e0bdf08e552fd0782a404b225212.zip
HAL_MODULE_SENSOR will support the multiple version of HAL interface. So that v1.0 is first supported version of HAL_MODULE_SENSOR. hal-sensor-interface-1.h contains the v1.0 HAL interface. Change-Id: I3f93cb8d9399bb0e78c97cc2b9b8cd1b14b76c6d Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r--include/hal-sensor-interface-1.h36
-rw-r--r--include/hal-sensor-interface.h14
2 files changed, 37 insertions, 13 deletions
diff --git a/include/hal-sensor-interface-1.h b/include/hal-sensor-interface-1.h
new file mode 100644
index 0000000..f700964
--- /dev/null
+++ b/include/hal-sensor-interface-1.h
@@ -0,0 +1,36 @@
+/*
+ * HAL (Hardware Abstract Layer) Common API
+ *
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __HAL_SENSOR_INTERFACE_1__
+#define __HAL_SENSOR_INTERFACE_1__
+
+#include <hal/hal-common-interface.h>
+#include "hal-sensor-types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct _hal_backend_sensor_funcs {
+ int (*create)(sensor_device_t **devices);
+} hal_backend_sensor_funcs;
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* __HAL_SENSOR_INTERFACE_1__ */
diff --git a/include/hal-sensor-interface.h b/include/hal-sensor-interface.h
index 6a6b807..d2e931e 100644
--- a/include/hal-sensor-interface.h
+++ b/include/hal-sensor-interface.h
@@ -19,18 +19,6 @@
#ifndef __HAL_SENSOR_INTERFACE__
#define __HAL_SENSOR_INTERFACE__
-#include <hal/hal-common-interface.h>
-#include "hal-sensor-types.h"
+#include "hal-sensor-interface-1.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct _hal_backend_sensor_funcs {
- int (*create)(sensor_device_t **devices);
-} hal_backend_sensor_funcs;
-
-#ifdef __cplusplus
-}
-#endif
#endif /* __HAL_SENSOR_INTERFACE__ */