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)
--- /dev/null
+/*
+ * 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__ */
#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__ */