Add support for HAL_MODULE_ZIGBEE v1.0 interface 35/313235/1
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 20 Jun 2024 07:58:00 +0000 (16:58 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 20 Jun 2024 07:58:00 +0000 (16:58 +0900)
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>
CMakeLists.txt
include/hal-zigbee-interface-1.h [new file with mode: 0755]
include/hal-zigbee-interface.h

index 49182fefb8b4f093b9d8d71153ee0cac02a37955..aa2037a7f6a71e647c78cf6615a05185a02a1d67 100644 (file)
@@ -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 (executable)
index 0000000..eee8249
--- /dev/null
@@ -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__ */
index d63da04d121f93bde40cd634214e08e238934c1f..145daa96f8493bf57e4ffba2cfb40a6070f76b52 100755 (executable)
 #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__ */