diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2024-06-20 16:58:00 +0900 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2024-06-20 16:58:00 +0900 |
commit | ef265c7086810b6a82714f33d5a8316a44de33d7 (patch) | |
tree | 4606385f5533dfb65f832f29cde9edf809c0ba0d | |
parent | 4f1a8d0e5dcf5dce1a69ceab9e3f2f03ffa3004e (diff) | |
download | zigbee-ef265c7086810b6a82714f33d5a8316a44de33d7.tar.gz zigbee-ef265c7086810b6a82714f33d5a8316a44de33d7.tar.bz2 zigbee-ef265c7086810b6a82714f33d5a8316a44de33d7.zip |
Add support for HAL_MODULE_ZIGBEE v1.0 interface
HAL_MODULE_ZIGBEE will support the multiple version of HAL interface.
So that v1.0 is first supported version of HAL_MODULE_ZIGBEE.
hal-zigbee-interface-1.h contains the v1.0 HAL interface.
Change-Id: I3f1807f2f64fe413cf46b3375e8c5078ba31db03
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rwxr-xr-x | include/hal-zigbee-interface-1.h | 38 | ||||
-rwxr-xr-x | include/hal-zigbee-interface.h | 16 |
3 files changed, 40 insertions, 17 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 49182fe..aa2037a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,5 @@ SET_TARGET_PROPERTIES( ${PROJECT_NAME} PROPERTIES VERSION ${VERSION}) CONFIGURE_FILE( ${PROJECT_NAME}.pc ${PROJECT_NAME}.pc @ONLY) INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIBDIR}/hal) -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/hal-zigbee.h DESTINATION ${INCLUDEDIR}/hal) -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/hal-zigbee-interface.h DESTINATION ${INCLUDEDIR}/hal) +INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION ${INCLUDEDIR}/hal FILES_MATCHING PATTERN "hal-zigbee*.h") INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIBDIR}/pkgconfig) diff --git a/include/hal-zigbee-interface-1.h b/include/hal-zigbee-interface-1.h new file mode 100755 index 0000000..eee8249 --- /dev/null +++ b/include/hal-zigbee-interface-1.h @@ -0,0 +1,38 @@ +/* + * HAL (Hardware Abstract Layer) ZIGBEE 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_ZIGBEE_INTERFACE_1__ +#define __HAL_ZIGBEE_INTERFACE_1__ + +#include <hal/hal-common-interface.h> +#include <stdbool.h> +#include <stdint.h> +#include <glib.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct _hal_backend_zigbee_funcs { + int (*get_descriptor)(void *descriptor); +} hal_backend_zigbee_funcs; + +#ifdef __cplusplus +} +#endif +#endif /* __HAL_ZIGBEE_INTERFACE_1__ */ diff --git a/include/hal-zigbee-interface.h b/include/hal-zigbee-interface.h index d63da04..145daa9 100755 --- a/include/hal-zigbee-interface.h +++ b/include/hal-zigbee-interface.h @@ -19,20 +19,6 @@ #ifndef __HAL_ZIGBEE_INTERFACE__ #define __HAL_ZIGBEE_INTERFACE__ -#include <hal/hal-common-interface.h> -#include <stdbool.h> -#include <stdint.h> -#include <glib.h> +#include <hal-zigbee-interface-1.h> -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct _hal_backend_zigbee_funcs { - int (*get_descriptor)(void *descriptor); -} hal_backend_zigbee_funcs; - -#ifdef __cplusplus -} -#endif #endif /* __HAL_ZIGBEE_INTERFACE__ */ |