From 2e2bbe5541253ab2dae611d2ff063cb015787847 Mon Sep 17 00:00:00 2001 From: "taemin.yeom" Date: Wed, 22 Dec 2021 14:55:47 +0900 Subject: [PATCH] Use HAL attribute enum -include hal-api-sensor -remove sensor_attribute_internal_e Change-Id: Iaf23b2ae7a4f6ca7e1627d27f6d50e3f34c57d03 Signed-off-by: taemin.yeom --- CMakeLists.txt | 2 +- include/sensor-internal.h | 6 +----- packaging/capi-system-sensor.spec | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c214b74..958043b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(capi-system-sensor) INCLUDE(GNUInstallDirs) -SET(DEPENDENTS "dlog sensor capi-base-common") +SET(DEPENDENTS "dlog sensor hal-api-sensor capi-base-common") IF("${SENSOR_RECORDER}" STREQUAL "on") SET(DEPENDENTS "${DEPENDENTS} context-sensor-recorder-client") diff --git a/include/sensor-internal.h b/include/sensor-internal.h index 650529a..fa12411 100644 --- a/include/sensor-internal.h +++ b/include/sensor-internal.h @@ -15,17 +15,13 @@ */ #include +#include #ifdef __cplusplus extern "C" { #endif -typedef enum { - SENSOR_ATTRIBUTE_INTERNAL_START = 10000, - SENSOR_ATTRIBUTE_POWER_STATE, -} sensor_attribute_internal_e; - typedef enum { SENSOR_LIDAR = 1000, } sensor_type_internel_e; diff --git a/packaging/capi-system-sensor.spec b/packaging/capi-system-sensor.spec index 71782ab..ae95771 100644 --- a/packaging/capi-system-sensor.spec +++ b/packaging/capi-system-sensor.spec @@ -16,6 +16,7 @@ BuildRequires: cmake BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(sensor) BuildRequires: pkgconfig(capi-base-common) +BuildRequires: pkgconfig(hal-api-sensor) %if "%{?SENSOR_RECORDER}" == "on" BuildRequires: pkgconfig(context-sensor-recorder-client) %endif -- 2.34.1