diff options
author | taemin.yeom <taemin.yeom@samsung.com> | 2021-12-22 14:55:47 +0900 |
---|---|---|
committer | taemin.yeom <taemin.yeom@samsung.com> | 2021-12-22 14:55:47 +0900 |
commit | 2e2bbe5541253ab2dae611d2ff063cb015787847 (patch) | |
tree | 5cfea52199262787b81a2d1112ed4e5069470254 | |
parent | 17fc4bc13d80b615dd2c9caef4c8f816587c259b (diff) | |
download | sensor-2e2bbe5541253ab2dae611d2ff063cb015787847.tar.gz sensor-2e2bbe5541253ab2dae611d2ff063cb015787847.tar.bz2 sensor-2e2bbe5541253ab2dae611d2ff063cb015787847.zip |
Use HAL attribute enumsubmit/tizen/20211222.081021accepted/tizen/unified/20211224.144853
-include hal-api-sensor
-remove sensor_attribute_internal_e
Change-Id: Iaf23b2ae7a4f6ca7e1627d27f6d50e3f34c57d03
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | include/sensor-internal.h | 6 | ||||
-rw-r--r-- | 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,6 +15,7 @@ */ #include <sensor.h> +#include <hal-sensor-types.h> #ifdef __cplusplus extern "C" @@ -22,11 +23,6 @@ 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 |