From: Chanwoo Choi Date: Wed, 19 Jun 2024 10:27:54 +0000 (+0900) Subject: halapi: sensor: Add support for HAL_MODULE_SENSOR v1.0 X-Git-Tag: accepted/tizen/unified/20240621.010415^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=058eb06604c9e0bdf08e552fd0782a404b225212;p=platform%2Fhal%2Fapi%2Fsensor.git halapi: sensor: Add support for HAL_MODULE_SENSOR v1.0 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 --- 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 +#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 -#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__ */