From: taemin.yeom Date: Wed, 22 Dec 2021 05:55:47 +0000 (+0900) Subject: Use HAL attribute enum X-Git-Tag: submit/tizen/20211222.081021^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e2bbe5541253ab2dae611d2ff063cb015787847;p=platform%2Fcore%2Fapi%2Fsensor.git Use HAL attribute enum -include hal-api-sensor -remove sensor_attribute_internal_e Change-Id: Iaf23b2ae7a4f6ca7e1627d27f6d50e3f34c57d03 Signed-off-by: taemin.yeom --- 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